예제 #1
0
        public async Task <IActionResult> DeleteEventItem(int id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            await Event.DeleteConfirmedAsync(id);

            return(NoContent());
        }
예제 #2
0
        public async Task <IActionResult> DeleteEvent(int Id)
        {
            if (Id == null)
            {
                return(NotFound());
            }

            await FEventServices.DeleteConfirmedAsync(Id);

            Message = "Delete Ok";
            return(RedirectToAction("Index"));
        }