public ActionResult EmployeePositionUpdate(PositionVM model) { IStructuredetailRepository repo = new StructuredetailRepository(); repo.updatepos(model.EmployeeId, model.posidtopro); repo.Save(); repo.updateempdetailpro(model.EmployeeId); repo.Save(); TempData["SuccessMessage11"] = "Success"; return(Json(new { success = true }, JsonRequestBehavior.AllowGet)); }