Esempio n. 1
0
 /// <summary>
 /// Method to add Rooms using LINQ TO SQL CONCEPT
 /// </summary>
 /// <param name="_roomObj">It accepts Room object and returns void</param>
 public void AddRoomLinqToSql(EntityLayers.Room _roomObj)
 {
     try
     {
         DataAccessLayer.RoomDataContext _roomDataContext = new DataAccessLayer.RoomDataContext();
         _roomDataContext.sp_AddRoom(_roomObj._roomDesc, _roomObj._roomCharges, _roomObj._roomServices, _roomObj._roomTypeID);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Method to Modify Rooms using LINQ TO SQL CONCEPT
 /// </summary>
 /// <param name="_roomObj">It accepts Room object and returns void</param>
 public void ModifyRoomLinqToSql(EntityLayers.Room _roomObj)
 {
     DataAccessLayer.RoomDataContext _roomDataContext = new DataAccessLayer.RoomDataContext();
     _roomDataContext.sp_ModifyRoom(_roomObj._roomID, _roomObj._roomDesc, _roomObj._roomCharges, _roomObj._roomServices);
 }