Esempio n. 1
0
 public async Task UpdateRoom(Guid id, CreateUpdateRoomDto input)
 {
     var room = new Room(id)
     {
         Name   = input.Name,
         Price  = input.Price,
         Status = input.Status
     };
     await roomDomainService.UpdateRoom(id, room);
 }
Esempio n. 2
0
        public async Task CreateRoom(CreateUpdateRoomDto input)
        {
            var room = new Room(guidGenerator.Create())
            {
                Name   = input.Name,
                Price  = input.Price,
                Status = input.Status,
            };

            await roomDomainService.CreateRoom(room);
        }