コード例 #1
0
 public static ModelsDAL.UserInfos UserInfos_ApiToDAL(this ModelsAPI.UserInfos user)
 {
     return(new ModelsDAL.UserInfos
     {
         UserID = user.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
     });
 }
コード例 #2
0
 public IActionResult Update(ModelsAPI.UserInfos user)
 {
     _userRepository.Update(user.UserInfos_ApiToDAL());
     return(Ok());
 }