Ejemplo n.º 1
0
 eSaler LoadSaler(string email)
 {
     QuerySelectSalerByEmailNick query = new QuerySelectSalerByEmailNick("",
                                                                         email,
                                                                         DBUtils.GetDBConnection(),
                                                                         null);
     query.Execute();
     if(query.salers.Count > 0)
     {
         return query.salers[0];
     }
     return null;
 }
Ejemplo n.º 2
0
 protected bool IsUserRegistred(UpdateReq msg)
 {
     if (msg.type == 0)
     {
         QuerySelectClientByEmailNick query = new QuerySelectClientByEmailNick("",
                                                                               msg.email,
                                                                               DBUtils.GetDBConnection(),
                                                                               null);
         query.Execute();
         return(query.clients.Count != 0);
     }
     else
     {
         QuerySelectSalerByEmailNick query = new QuerySelectSalerByEmailNick("",
                                                                             msg.email,
                                                                             DBUtils.GetDBConnection(),
                                                                             null);
         query.Execute();
         return(query.salers.Count != 0);
     }
 }