using AutoMapper;
using VentaUniformes.Application.Interfaces;
using VentaUniformes.Application.Persistencia.user.commands.UpdateUser;
using VentaUniformes.Domain.Entities.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VentaUniformes.Application.Persistencia.user.commands.DeleteUser
{
    public class DeleteUserCommand: IDeleteUserCommand
    {
        IPersistenciaService _persistenciaService;
        public DeleteUserCommand(IPersistenciaService persistenciaService)
        {
            _persistenciaService = persistenciaService;
        }
        public async Task<bool> Execute(int id)
        {
            //aqui se guarda realmente
            return await _persistenciaService.DeleteUser(id);
        }
    }
}
