Example #1
0
 public ActionResult Create(RoomType roomType)
 {
     try
     {
         roomType.RoomAvailable = roomType.NumOfRooms;
         if (_roomTypeService.Insert(roomType))
         {
             return(RedirectToAction("Index"));
         }
     }
     catch
     {
         return(View());
     }
     return(View());
 }