public async Task <ActionResult> GetCompetitorEditData(int competitorId) { return(Json(new { Competitor = await _competitorService.GetCompetitor(competitorId), DormsList = await _dormService.GetAll() }, JsonRequestBehavior.AllowGet)); }
// GET: Dorm/Admin public async Task <ActionResult> GetAll() { return(Json(await _dormService.GetAll(), JsonRequestBehavior.AllowGet)); }