Exemplo n.º 1
0
        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());
        }