public async System.Threading.Tasks.Task <ActionResult> UpdateBrandMaster([DataSourceRequest] DataSourceRequest request, BrandMaster _brand) { List <string> res = new List <string>(); var currentuser = Commonhelper.GetCurrentUserDetails(); BrandMaster master = new BrandMaster(); try { master.Id = _brand.Id; master.ModifiedBy = currentuser.Id; master.ModifiedDate = DateTime.Now; master.Name = _brand.Name; master.CheckName = _brand.Name; master.Description = _brand.Description; master.StoreId = currentuser.StoreId; master.workstation = Commonhelper.GetStation(); master.FinancialYear = DateTime.Now.Year; master.CompanyId = currentuser.CompanyId; try { Commonhelper.UpdateBrand(master); return(Json(new[] { master }.ToDataSourceResult(request, ModelState))); } catch (Exception ex) { return(Json(new[] { master }.ToDataSourceResult(request, ModelState))); } } catch (Exception ex) { return(Json(new[] { master }.ToDataSourceResult(request, ModelState))); } }