Esempio n. 1
0
 public int Save(UsersML users)
 {
     try
     {
         users.Password = conexion.Encriptar(users.Password);
         if (users.Id == 0)
         {
             return(UsersDAL.Save(users));
         }
         else
         {
             return(UsersDAL.Update(users));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(String.Format("{0}.Save: {1}", core, ex));
     }
 }