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 }); }
public IActionResult Update(ModelsAPI.UserInfos user) { _userRepository.Update(user.UserInfos_ApiToDAL()); return(Ok()); }