public ActionResult Update(int id) { var model = OutcomeInfo.Get(UserID, Employee.ID, id); if (Request.IsAjaxRequest()) { return(Json(new { html = RenderPartialViewToString(Views.SavePartial, model) }, JsonRequestBehavior.AllowGet)); } return(View(Views.Save, model)); }
public ActionResult Detail(int id) { var data = OutcomeInfo.Get(UserID, Employee.ID, id, true); if (Request.IsAjaxRequest()) { return(Json(new { html = RenderPartialViewToString(Views.DetailPartial, data) }, JsonRequestBehavior.AllowGet)); } return(View(Views.Detail, data)); }