示例#1
0
        public IHttpActionResult DeleteArtist(int id)
        {
            mLogger.Write("Delete article was called", LogLevel.INFO);
            if (!mRepo.Delete(id))
            {
                return(NotFound());
            }

            return(Ok());
        }
示例#2
0
        public async Task <Unit> Handle(MagazynDeleteCommand request, CancellationToken cancellationToken)
        {
            await _repository.Delete(request.MagazynId);

            return(Unit.Value);
        }