public ResponseDTO <string> Add(OrdenRequestDTO entity) { ResponseDTO <string> response = new ResponseDTO <string>(); response.Success = true; database = DatabaseFactory.CreateDataBase(databaseType, "[ORDEN].[USP_ADD_ORDEN]", entity.sNombre, entity.sApellidos, entity.sTelefono, entity.sEmail, entity.sRazonSocial, entity.bIcluyeIVA, Helper.ToDataTable(entity.tServicios), entity.sCodigoDescuento, entity.dPrecioDominio, entity.sDominio); response = CommonMapper.MapperIdString(database.DataReader); database.Connection.Close(); response.Message = CommonMapper.MapperOutput(database); return(response); }
private ResponseDTO <List <CotizacionResponseDTO> > Get(DataTable IdServicios, string CodigoServicio) { database = DatabaseFactory.CreateDataBase(databaseType, "[ORDEN].[USP_GET_COTIZACION]", IdServicios, CodigoServicio); ResponseDTO <List <CotizacionResponseDTO> > response = CotizacionMapper.MapperCotizacionResponseDTO(database.DataReader); database.Connection.Close(); response.Message = CommonMapper.MapperOutput(database); return(response); }