Exemple #1
0
        //  [Authorize]
        public IHttpActionResult UpdateProfile([FromBody] Profile profile)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }
                _studentProfileService.UpdateProfile(profile, Request.GetAuthorizationHeader());

                return(Ok());
            }
            catch (System.Exception e)
            {
                return(InternalServerError(e));
            }
        }