예제 #1
0
        public async Task <ValueResponse <Equipment> > FindByIdAsync(Guid id)
        {
            var equipment = await _repository.FindByIdAsync(id);

            return(equipment == null
                ? new ValueResponse <Equipment>("Equipment not found")
                : new ValueResponse <Equipment>(equipment));
        }