示例#1
0
        public ActionResult DeleteStatus([FromQuery] int Id)
        {
            var p_st = _repository.Exist(Id);

            if (p_st == null)
            {
                return(NotFound());
            }

            _repository.Delete(p_st);
            _repository.SaveChanges();

            return(NoContent());
        }