public ActionResult AjaxForm() { var model = new FormReceiptPaymentItem { ObjItem = (DoAction == ActionType.Edit) ? _api.GetReceiptPaymentItem(ArrId.FirstOrDefault()) : new ReceiptPaymentItem(), Action = DoAction.ToString(), AgencyId = UserItem.AgencyID, UserId = UserItem.UserId, Users = _userApi.GetListAllKt(UserItem.AgencyID), CostTypeItems = _costTypeApi.GetList(UserItem.AgencyID, (int)Vouchers.ReceiptPayment) }; return(View(model)); }