public IActionResult Delete([FromRoute] int userListId) { if (!_userListRepository.Find(x => x.UserId == UserId && x.UserListId == userListId).Any()) { return(Forbid()); } _userListRepository.Delete(userListId); return(Ok()); }
public IActionResult Delete(Guid id) { var entity = _repository.GetById(id); if (entity == null) { return(NotFound()); } _repository.Delete(id); return(NoContent()); }
public void Delete(String id) { _repository.Delete(id); }
public void Delete(Guid id) { _repository.Delete(id); }