public List <DTO.dtoVenta> TraerVentas() { var repository = new VentaRepository(); var BIZ = repository.ObtenerTodos(); BLL.Mapeador.AutoMapperBLLConfiguration.Configure(); var DTO = Mapper.Map <List <dtoVenta> >(BIZ); return(DTO); }
public List <dtoVenta> MisCompras(int idUsuario) { var repository = new VentaRepository(); var BIZ = repository.ObtenerTodos().Where(x => x.UserId == idUsuario).ToList(); BLL.Mapeador.AutoMapperBLLConfiguration.Configure(); var DTO = Mapper.Map <List <dtoVenta> >(BIZ); return(DTO); }