public ActionResult UpdateIndentBudget(int?Id) { IndentBudgetViewModel model = new IndentBudgetViewModel(); model.Id = Id ?? 0; return(View(model)); }
public ActionResult AddIndentBudget() { IndentBudgetViewModel model = new IndentBudgetViewModel(); model.Id = 0; return(View(model)); }
public JsonResult GetIndentBudgetById(int Id) { IndentBudgetViewModel model = new IndentBudgetViewModel(); Data.Models.IndentBudget objIB = this._IndentBudgetServices.GetForId(Id); if (objIB != null) { model.Id = objIB.Id; model.BudgetType = objIB.BudgetType; model.BudgetCode = objIB.BudgetCode; model.Amount = objIB.Amount; model.IsActive = objIB.IsActive; model.FinancialYear = objIB.FinancialYear; } return(Json(model, JsonRequestBehavior.AllowGet)); }