Beispiel #1
0
        public static Parking convertToDal(Parking_Entity p)
        {
            return(new Parking()
            {
                p_Id = p.p_Id,
                p_Name = p.p_Name,

                p_Addess = p.p_Addess,
                p_Lat = p.p_Lat,
                p_Long = p.p_Long,
                p_ParkingsNum = p.p_ParkingsNum,
                p_EmptyParkings = p.p_EmptyParkings,
                p_Description = p.p_Description,
                p_ActivityHoursTill = p.p_ActivityHoursTill,
                p_ActivityHoursEnd = p.p_ActivityHoursEnd,
                p_PricesHour = p.p_PricesHour,
                p_API_Details = p.p_API_Details,
                p_BankDetails = p.p_BankDetails
            });
        }
Beispiel #2
0
 //הוספת חניון
 public static void AddParking(Parking_Entity parking)
 {
     db.Parkings.Add(Convert_Parking.convertToDal(parking));
     db.SaveChanges();
 }