public int AddUser(users user)
 {
     Users users = new Users();
     user.verification_code = Utils.GenerateVerficationCode();
     user.is_verified = false;
     user.date_added = DateTime.Now;
     var id = users.AddUser(user);
     SmileSMS.Send(user.phone_number, "Verification Code For Ping Pakistan: " + user.verification_code);
     return id;
 }
 public int AddUser(users user)
 {
     try
     {
         ping_pakistanEntities db = new ping_pakistanEntities();
         db.users.Add(user);
         db.SaveChanges();
         return user.id;
     }
     catch(Exception ex)
     {
         return -1;
     }
 }