コード例 #1
0
        public async Task <ActionResult> EditSport(SportViewModel sportModel)
        {
            _sportService.EditSport(new DomainClasses.Sport
            {
                Id   = sportModel.Id,
                Name = sportModel.Name
            });

            await _dbContext.SaveChangesAsync();

            return(new HttpStatusCodeResult(HttpStatusCode.OK));
        }