public void InsertBooking(BookingsModel booking)
 {
     booking.IdBooking        = Guid.NewGuid();
     booking.BookingTimeStamp = DateTime.Now;
     dbContext.Bookings.InsertOnSubmit(MapModelToDbObject(booking));
     dbContext.SubmitChanges();
 }
 public void InsertFloorBuilding(FloorsModel floor)
 {
     floor.IdFloor = Guid.NewGuid();
     dbContext.Floors.InsertOnSubmit(MapModelToDbObject(floor));
     dbContext.SubmitChanges();
 }
 public void InsertOfficeBuilding(OfficeBuildingsModel building)
 {
     building.IdBuilding = Guid.NewGuid();
     dbContext.OfficeBuildings.InsertOnSubmit(MapModelToDbObject(building));
     dbContext.SubmitChanges();
 }
Exemple #4
0
 public void InsertUserRole(UsersClustersModel userRole)
 {
     dbContext.AspNetRoles.InsertOnSubmit(MapModelToDbObject(userRole));
     dbContext.SubmitChanges();
 }
Exemple #5
0
 public void InsertRawRole(RawUserTypesModel role)
 {
     role.IdUserTypes = Guid.NewGuid();
     dbContext.RawUserTypes.InsertOnSubmit(MapModelToDbObject(role));
     dbContext.SubmitChanges();
 }
Exemple #6
0
 public void InsertDepartment(DepartmentsModel department)
 {
     department.IdDepartment = Guid.NewGuid();
     dbContext.Departments.InsertOnSubmit(MapModelToDbObject(department));
     dbContext.SubmitChanges();
 }