public async Task <IResult> DeleteAsync(int id) { Brand brand = await _brandDAL.GetAsync(x => x.Id == id); _brandDAL.Remove(brand); await _uow.Complete(); return(new SuccessResult()); }
public async Task <IResult> DeleteAsync(int id) { Brand brand = await _brandDAL.GetAsync(x => x.Id == id); _brandDAL.Remove(brand); await _uow.Complete(); return(new SuccessResult()); }