public ActionResult Update(int id) { var model = IncomeInfo.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 = IncomeInfo.Get(UserID, Employee.ID, id, true); if (Request.IsAjaxRequest()) { return(Json(new { html = RenderPartialViewToString(Views.DetailPartial, data) }, JsonRequestBehavior.AllowGet)); } return(View(Views.Detail, data)); }