public async Task <IEnumerable <SessionBuffer> > GetByCompanyIdAsync(int partnerId, SessionBufferTypes sessionBufferTypes) { string cmd = $"SELECT * FROM `session_buffer` WHERE `is_deleted` = 0 AND `partner_id` = '{partnerId}' AND `type` = '{sessionBufferTypes}'"; return(await DALHelper.Query <SessionBuffer>(cmd, dbTransaction : DbTransaction, connection : DbConnection)); }
public Task <IEnumerable <SessionBuffer> > GetByCompanyIdAsync(int partnerId, SessionBufferTypes sessionBufferTypes) { return(_sessionBufferQueries.GetByCompanyIdAsync(partnerId, sessionBufferTypes)); }