Beispiel #1
0
        public IActionResult Delete(int id)
        {
            Data dt = new Data();

            dt.Id = id;
            var found = rep.Find(id);

            rep.Delete(dt);

            return(new ObjectResult(found));
        }