public JsonResult JsonAccountHeads(int page = 1) { var concernId = Convert.ToInt32(Session["ConcernId"]); var userId = Convert.ToInt32(Session["UserId"]); var culture = ""; var heads = _settings.ResponseAccountHeads(culture, page, concernId); AccountHeadsViewModels viewModels = new AccountHeadsViewModels() { ResponseAccountHeads = heads }; return(Json(viewModels, JsonRequestBehavior.AllowGet)); }
public ActionResult AddJournal() { var concernId = Convert.ToInt32(Session["ConcernId"]); var userId = Convert.ToInt32(Session["UserId"]); if (concernId > 0 && userId > 0) { var acoountHeads = _settings.AccountsHeads(concernId); AccountHeadsViewModels viewModels = new AccountHeadsViewModels() { AccountsHeads = acoountHeads }; return(View(viewModels)); } return(RedirectToAction("LogIn", "GlobalData", new { Area = "Global" })); }
public ActionResult AccountHeads(int page = 1) { var concernId = Convert.ToInt32(Session["ConcernId"]); var userId = Convert.ToInt32(Session["UserId"]); if (concernId > 0 && userId > 0) { var culture = ""; var heads = _settings.ResponseAccountHeads(culture, page, concernId); AccountHeadsViewModels viewModels = new AccountHeadsViewModels() { ResponseAccountHeads = heads }; return(View(viewModels)); } return(RedirectToAction("LogIn", "GlobalData", new { Area = "Global" })); }