Пример #1
0
        public async Task <IActionResult> DeleteAchievement(int id)
        {
            var acs = await _achievementService.GetTById(id);

            if (acs == null)
            {
                return(NotFound());
            }
            _achievementService.DeleteT(acs);
            if (!await _achievementService.Save())
            {
                return(StatusCode(500, "删除数据时出错"));
            }
            return(NoContent());
        }