public IActionResult SaveKeySuccessIndicator(KeyResultAreaContentViewModel model) { var UserId = HttpContext.Session.GetString("UserId"); if (ModelState.IsValid) { var item = new KeySuccessIndicator { Id = model.KSIId, Title = model.KSITitle, Description = model.KSIDescription, KeyResultArea = _Services.GetKeyResultAreaById(model.KRAId), Weight = model.KSIWeight }; _Services.SaveKeySuccessIndicator(item, UserId); return(RedirectToAction("Content", new { id = model.KRAId })); } else { return(RedirectToAction("Content", new { id = model.KeyResultAreaId })); } }