Example #1
0
        public ActionResult <StudentsModel> GetByName(string name)
        {
            Students      result  = studentBL.GetStudentsByName(name);
            StudentsModel student = StudentsModel.ToStudentsModel(result);

            return(student);
        }
Example #2
0
        public ActionResult <StudentsModel> Get()
        {
            Students      result   = studentBL.GetStudents();
            StudentsModel students = StudentsModel.ToStudentsModel(result);

            return(students);
        }