/// <summary> /// Add/Update CommodityMaster /// </summary> /// <returns></returns> public async Task <ActionResult> AddCommodityMaster(int id) { var commodity = await _masterService.GetCommodityById(id); if (commodity == null) { commodity = new Arity.Data.Entity.CommodityMaster() { EFDate = DateTime.Now } } ; return(PartialView("_CommodityWizard", commodity)); }
public async Task <ActionResult> AddCommodityMaster(Arity.Data.Entity.CommodityMaster commodity) { await _masterService.AddUpdateCommodity(commodity); return(Json(true, JsonRequestBehavior.AllowGet)); }