Пример #1
0
        public StudentViewModel GetStudentById(Guid studentId)
        {
            var e = _studentsRepo.GetStudentById(studentId);

            if (e != null)
            {
                var result = _autoMapper.Map <StudentViewModel>(e);
                return(result);
            }
            else
            {
                return(null);
            };
        }
Пример #2
0
 public async Task <Student> Get(int id)
 {
     return(await studentsRepository.GetStudentById(id));
 }