Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            _eventtypeRepository.Delete(id);
            _eventtypeRepository.Save();

            return(RedirectToAction("Index"));
        }
Пример #2
0
        public IOperationResult DeleteEventType(EventType eventType)
        {
            Result.Reset();

            Result = eventTypeContext.Delete(eventType);

            if (Result.IsError)
            {
                Result = eventTypeContext.Result;
                Result.CustomMessage = "There was a problem deleting the requested EventType";
            }

            return(Result);
        }
Пример #3
0
 public IActionResult Delete(int id)
 {
     _eventTypeRepo.Delete(id);
     return(Ok());
 }