Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }