private WriteOfListDTO ConvertTo(StoreHouseDTO storeHouseDTO)
        {
            WriteOfListDTO writeOfList = new WriteOfListDTO
            {
                MedicalBills      = storeHouseDTO.MedicalBills,
                DateOfManufacture = storeHouseDTO.DateOfManufacture,
                ShelfLife         = storeHouseDTO.ShelfLife
            };

            return(writeOfList);
        }
Beispiel #2
0
 public void Update(WriteOfListDTO entity)
 {
     _repository.Remove(Mapper.FromDTO(entity));
 }
Beispiel #3
0
 public void Add(WriteOfListDTO entity)
 {
     _repository.Add(Mapper.FromDTO(entity));
 }