예제 #1
0
        public ActionResult EditProfile(UserProfile updatedProfile)
        {
            var result = _processor.SaveProfile(updatedProfile);

            // Return an empty string
            if (result.IsSuccessful)
            {
                return(RedirectToAction("Index", "TimeEntry"));
            }

            // Return the error message
            HttpContext.Response.StatusCode = 500;
            return(Content(result.ErrorMessage));
        }