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); }
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); }