public async Task <ActionResult <StudentsModel> > Get(string studno, bool includeSubjects = false) { //try //{ var result = await _repo.GetStudentsRecByStudno(studno, includeSubjects); if (result == null) { return(NotFound()); } return(_mapper.Map <StudentsModel>(result)); //} //catch (Exception) //{ // return this.StatusCode(StatusCodes.Status500InternalServerError, "Database Failure -moniker"); //} }