Esempio n. 1
0
        public async Task <UnitOfMeasureBackendDTO> CreateAndSaveUnitOfMeasure(string unitOfMeasureDesc)
        {
            var uom = UnitOfMeasure.Create(unitOfMeasureDesc);

            await _repository.SaveUnitOfMeasureAsync(uom);

            return(new UnitOfMeasureBackendDTO()
            {
                Id = uom.Id, UnitOfMeasureDesc = uom.UnitOfMeasureDesc
            });
        }