Example #1
0
 public IActionResult Delete(int id)
 {
     if (_userRepository.Delete(id))
     {
         return(Ok());
     }
     else
     {
         return(NotFound());
     }
 }
Example #2
0
 private void Delete()
 {
     _eventRequester.Delete(Id);
     //Messenger<EventViewModel>.Instance.Send("DeleteEvent", this);
     Messenger <DeleteMessage <EventViewModel> > .Instance.Send(new DeleteMessage <EventViewModel>(this));
 }