public ActionResult ListItems(int id, int year) { var model = new ModelMonthEItem { BonusTypeItem = _bonusTypeDa.GetItemTop(), ListItem = _da.OrderByEnterprisesRequest(id, year), }; return(View(model)); }
public ActionResult AjaxForm() { var enterprises = new DN_Enterprises(); if (DoAction == ActionType.Edit) { enterprises = _enterprisesDa.GetById(ArrId.FirstOrDefault()); } ViewBag.ST_Group = _stGroupDa.GetAll(); ViewBag.BonusType = _bonusTypeDa.GetItemTop(); ViewData.Model = enterprises; ViewBag.Action = DoAction; ViewBag.ActionText = ActionText; return(View()); }