Exemplo n.º 1
0
        public ActionResult DeleteCommand(int id)
        {
            var modal = _repo.getCommandByIp(id);

            if (modal == null)
            {
                return(NotFound());
            }
            _repo.Delete(modal);
            _repo.SaveChanges();
            return(Ok(modal));
        }