예제 #1
0
        public async Task <IActionResult> DeleteTodoItem(int spilid, int rundenr)
        {
            /*var runde = await _context.Runder.FindAsync(spilid,rundenr);
             *
             * if (runde == null)
             * {
             *   return NotFound();
             * }
             *
             * _context.Runder.Remove(runde);
             * await _context.SaveChangesAsync();*/
            Runde runde = new Runde();

            runde.SpilId  = spilid;
            runde.RundeNr = rundenr;

            Publish.Delete(runde);
            return(NoContent());
        }