public async Task <ActionResult> Get(int competitorId, int participationId) { var userId = Convert.ToInt32(User.Identity.Name); var data = new { CompetitionSport = await _participationService.GetCompetitionSport(participationId, Convert.ToInt32(User.Identity.Name)), Competitor = await _competitorService.GetCompetitor(competitorId, userId), StudyFields = await _studyFieldService.GetAllAsync(), StudyFieldDegrees = await _studyFieldDegreeService.GetAllAsync(), }; return(Json(data, JsonRequestBehavior.AllowGet)); }
public async Task <ActionResult> GetAll() { return(Json(await _studyFieldDegreeService.GetAllAsync(), JsonRequestBehavior.AllowGet)); }