public async Task <List <DbRecord> > GetRecords() { /* * var output = _sql.LoadData<DbRecord, dynamic>("dbo.spRecords_GetAll", new { }, "IzmainasDB"); * return output; */ var output = await _mySql.LoadData <DbRecord, dynamic>("spRecords_GetAll", new { }, "Default"); return(output); }
public async Task <List <DbEmailModel> > GetEmails() { /* * var output = _sql.LoadData<DbEmailModel, dynamic>("dbo.spEmails_GetAll", new { }, "IzmainasDB"); * return output; */ var output = await _mySql.LoadData <DbEmailModel, dynamic>("spEmails_GetAll", new { }, "Default"); return(output); }
public async Task <List <DbEmailTempModel> > GetTempEmails() { var output = await _mySql.LoadData <DbEmailTempModel, dynamic>("spEmailsTemp_GetAll", new { }, "Default"); return(output); }