Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Group17ProfileMicroservice
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Asif, Adiv (UG - Comp Sci & Elec Eng)
Group17ProfileMicroservice
Commits
266ce94b
Commit
266ce94b
authored
1 year ago
by
MikelLiza
Browse files
Options
Downloads
Patches
Plain Diff
Third Commit
parent
a2b58a05
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Controllers/ProfileController.cs
+6
-5
6 additions, 5 deletions
Controllers/ProfileController.cs
with
6 additions
and
5 deletions
Controllers/ProfileController.cs
+
6
−
5
View file @
266ce94b
...
...
@@ -22,18 +22,19 @@ public class ProfileController : DefaultProfileController
[
HttpPost
(
"UpdateProfile"
)]
[
SwaggerResponse
(
204
)]
[
SwaggerResponse
(
400
,
Type
=
typeof
(
ResponseEnvelope
<
BadRequestObjectResult
>))]
public
async
Task
<
ActionResult
>
UpdateProfile
([
FromBody
]
ProfileDTO
profile
)
[
SwaggerResponse
(
400
,
Type
=
typeof
(
ResponseEnvelope
<
ProfileDTO
>))]
public
async
Task
<
ActionResult
<
ResponseEnvelope
<
ProfileDTO
>>
>
UpdateProfile
([
FromBody
]
ProfileDTO
profile
)
{
try
{
await
_profileService
.
CreateOrUpdateProfile
(
profile
,
UserId
);
return
Ok
(
profile
);
}
catch
(
Exception
E
x
)
catch
(
Exception
e
x
)
{
return
Unauthorized
(
E
x
.
Message
);
return
Unauthorized
(
e
x
.
Message
);
}
return
Ok
(
null
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment