public ActionResult RoomTypeInsert(RoomTypesModel roomType, int[] RoomFeatureList) { RoomTypes room = roomType.ModelToEnity(); room.IsActive = true; _serviceRoomTypes.Insert(room); return RedirectToAction("RoomTypeList"); }
public ActionResult RoomTypeEdit(RoomTypesModel roomtypes) { RoomTypes roomtype = roomtypes.ModelToEnity(); roomtype.IsActive = true; _serviceRoomTypes.Update(roomtype); return RedirectToAction("RoomTypeList"); }