public List <TestDTO> GetTestByTagIdGroupId(TagGroupDTO dto) //корректный { TestManager teacher = new TestManager(); return(teacher.GetTestByTagpAndGroup(dto)); }
public List <TestDTO> GetTestByTagpAndGroup(TagGroupDTO dto) { using (IDbConnection connection = Connection.GetConnection()) { string sqlExpression = "Test_GetByTagNameGroupId @Tag_Name @Group_ID"; return(connection.Query <TestDTO>(sqlExpression, dto, commandType: CommandType.StoredProcedure).ToList()); } }