Ejemplo n.º 1
0
        public List <TestDTO> GetTestByTagIdGroupId(TagGroupDTO dto) //корректный

        {
            TestManager teacher = new TestManager();

            return(teacher.GetTestByTagpAndGroup(dto));
        }
Ejemplo n.º 2
0
 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());
     }
 }