private static void OptionCreateLocation(LocationController locationController) { var location = new LOUE() { ID_CLIENT = GetIntConsole("Id client : "), ID_VEHICULE = GetIntConsole("Id vehicule : "), NB_KM = GetIntConsole("NbKm"), DATE_DEBUT = GetDateConsole("Date debut : "), DATE_FIN = GetDateConsole("Date fin : ") }; WriteLine(locationController.CreateLocation(location)); }
public LOUE CreateLocation(LOUE location) { context.LOUE.Add(location); context.SaveChanges(); return(location); }
public LOUE CreateLocation(LOUE location) => LocationRepo.CreateLocation(location);