Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
        public async Task <ActionResult> AddCommodityMaster(Arity.Data.Entity.CommodityMaster commodity)
        {
            await _masterService.AddUpdateCommodity(commodity);

            return(Json(true, JsonRequestBehavior.AllowGet));
        }