示例#1
0
 public ActionResult Index(CreateEditConviveVM vm)
 {
     if (vm?.Convive != null)
     {
         vm.Convive.Email = ServiceConvive.GetOneConvive(User.Identity.GetUserId()).Email;
         if (!String.IsNullOrWhiteSpace(vm.Convive.Adresse))
         {
             ServiceCartographie.geocoder(vm.Convive);
         }
         ServiceConvive.EditConvive(vm.Convive);
         return(RedirectToAction("Index"));
     }
     return(View(vm));
 }
 public string selectionParking(string origin, string destination, string mode)
 {
     return(ServiceCartographie.selectDistanceParking(origin, destination, mode));
 }