public IHttpActionResult DeleteArtist(int id) { mLogger.Write("Delete article was called", LogLevel.INFO); if (!mRepo.Delete(id)) { return(NotFound()); } return(Ok()); }
public async Task <Unit> Handle(MagazynDeleteCommand request, CancellationToken cancellationToken) { await _repository.Delete(request.MagazynId); return(Unit.Value); }