Beispiel #1
0
        public async Task <IActionResult> GetAllMajorDetailByMjNum(string Num)
        {
            var mjs = await _majorService.GetMajorsByMjNum(Num);

            if (mjs.Count == 0)
            {
                return(NotFound());
            }
            var res = _mapper.Map <List <MajorDetailDto> >(mjs);

            return(Ok(res));
        }