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