public async Task <ActionResult <StudSubjectsModel[]> > Get(string studno) { //try //{ var subjects = await _repo.GetSubsByStudno(studno, true); return(_mapper.Map <StudSubjectsModel[]>(subjects)); //} //catch (Exception) //{ // return StatusCode(StatusCodes.Status500InternalServerError, "Failed to get Subjects"); //} }