Пример #1
0
 internal IRoomPrice UpdateRoomPrice(RoomType rType, double price)
 {
     if (dbCon.GetRoomPrice(rType) != null)
     {
         return(dbCon.UpdateRoomPrice(new RoomPrice(rType, price)));
     }
     else
     {
         return(dbCon.CreateRoomPrice(rType, price));
     }
 }