Example #1
0
 public int Authentication(string userName, string pass)
 {
     if (!string.IsNullOrEmpty(userName) && !string.IsNullOrEmpty(pass))
     {
         return(dll.Authentication(new Entities.users()
         {
             userName = userName,
             pass = pass
         }));
     }
     else
     {
         return(-1);
     }
 }