Ejemplo n.º 1
0
        public IActionResult EditProfil(ModelsView_Forms.UserInfos userInfos)
        {
            if (ModelState.IsValid)
            {
                _editUserSystemAPI.EditUser(userInfos.UserInfos_WebToApi(_sessionManager.UserID));
            }

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public static ModelAPI.UserInfos UserInfos_WebToApi(this ModelWeb.UserInfos user, int UserID)
 {
     return(new ModelAPI.UserInfos
     {
         UserID = UserID,
         LastName = user.LastName,
         FirstName = user.FirstName,
         Email = user.Email,
         Rue = user.Rue,
         Ville = user.Ville,
         Pays = user.Pays,
         Numero = user.Numero,
         CodePostal = user.CodePostal,
         Gsm = user.Gsm,
         Phone = user.Phone
     });
 }