public void UpdateBrand(UpdateBrandInput input) { var brand = _brandRepository.Get(input.Id); brand.BrandCode = input.BrandCode; brand.BrandName = input.BrandName; brand.BrandType = input.BrandType; _brandRepository.Update(brand); }
public ActionResult Edit(UpdateBrandInput modle) { this.Service.Update(modle); return(this.SuccessMsg("编辑成功")); }