public Response <Contents> UpdateContents([FromBody] Contents content) { try { var osPrincipal = (UserIdentity)System.Web.HttpContext.Current.User; var userData = JsonConvert.DeserializeObject <UserViewModel>(osPrincipal.UserData); content.LastUpdatedBy = userData.CodeUserName; return(_contentBusiness.UpdateContents(content)); } catch (Exception e) { _logger.Error($"UpdateContents Failed: {e.Message}\n {e.StackTrace}"); return(new Response <Contents>(false, e.Message, null)); } }