public async Task <IActionResult> Update(int Id) { var CurrentUser = await _userManager.GetUserAsync(User); if (await _claimCheck.CheckClaim(CurrentUser, "ApplicationRight", this.ControllerContext.RouteData.Values["controller"].ToString() + "\\" + this.ControllerContext.RouteData.Values["action"].ToString())) { var x = await _languageProvider.UpdateGet(CurrentUser.Id, Id); x.Statuses = await _masterListProvider.StatusList(CurrentUser.Id); return(Ok(x)); } return(BadRequest(new { IsSuccess = false, Message = "No rights", })); }