public ActionResult LeaveResponse(RequestVM model) { var empname = Session["Employeename"].ToString(); IStructuredetailRepository obj = new StructuredetailRepository(); obj.updatereqt(model.RequestId, empname, model.ResponseReason); obj.Save(); TempData["SuccessMessage101"] = "Successfully Approved"; return(RedirectToAction("Index", "Home")); }