public async Task <ActionResult> AddSportDetail(AddSportDetailViewModel sportDetailModel) { var sportDetail = new SportDetail { Name = sportDetailModel.SportDetailName, SportId = sportDetailModel.SportId }; _sportService.AddSportDetail(sportDetail); await _dbContext.SaveChangesAsync(); return(Json(sportDetail.Id, JsonRequestBehavior.AllowGet)); }