public bool Update() { BrandDTO brandDTO = new BrandDTO { Id = this.Id, Name = this.Name, Origin = this.Origin }; return(brandDAL.Update(brandDTO)); }
public async Task <IResult> AddOrEditAsync(Brand brand) { if (brand.Id != 0) { _brandDAL.Update(brand); } else { _brandDAL.Add(brand); } int result = await _uow.Complete(); if (result == 0) { return(new ErrorResult(CRUDMessages.CreateMessage)); } return(new SuccessResult()); }
public IResult UpdateBrand(NBrand brand) { _iBrandDal.Update(brand); return(new SuccessResult(Messages.BrandUpdated)); }
public IResult Update(Brand brand) { _brandDAL.Update(brand); return(new Result(true, Messages.BrandUpdated)); }
public bool Update(Brand entity) { return(_brandDAL.Update(entity) > 0); }
public IResult Update(Brand brand) { _brandDAL.Update(brand); return(new SuccessResult(Messages.BrandUpdated)); }
public void Update(Brand entity) { _brand.Update(entity); }
public IResult Update(Brand brand) { _brandDAL.Update(brand); return(new SuccessResult()); }
public void Update(Brand entity) { _dal.Update(entity); }