Ejemplo n.º 1
0
        public async Task <ActionResult> Delete(int id)
        {
            using var uow = _unitOfWorkFactory.Create();

            await _pizzaService.DeletePizzaAsync(id);

            uow.Commit();

            return(NoContent());
        }