Beispiel #1
0
        public async Task <IActionResult> DeletePosition(int id)
        {
            var pos = await _positionService.GetTById(id);

            if (pos == null)
            {
                return(NotFound());
            }
            _positionService.DeleteT(pos);
            if (!await _positionService.Save())
            {
                return(StatusCode(500, "删除职位信息时出错"));
            }
            return(NoContent());
        }