public async Task <IResult> DeleteAsync(Brand brand) { bool deleteResult = await _brandDal.DeleteAsync(brand); if (deleteResult == true) { return(new SuccessResult(Messages.BrandDeleted)); } else { return(new ErrorResult(Messages.BrandNotDeleted)); } }
public async Task <IResult> DeleteAsync(Brand entity) { await _brandDal.DeleteAsync(entity); return(new SuccessResult()); }
public async Task <IResult> Delete(Brand brand) { await _brandDal.DeleteAsync(brand); return(new SuccessResult()); }