public async Task <ActionResult> Delete(int id, string foo) { var model = await participantRepository.GetOne(id); await participantRepository.Delete(id); return(RedirectToAction("Index")); }
public async Task <bool> RemoveUserToConversationAsync(ConversationViewModel request) { foreach (var participantId in request.ParticipantIds) { var participant = _participantRepository.FindById(participantId); _participantRepository.Delete(participant); } return(await _unitOfWork.SaveChangeAsync() > 0); }
public IActionResult Delete(int id) { _ParticipantRepository.Delete(id); return(RedirectToAction("ParticipantList")); }