public User CheckCredential(string username, string password)
 {
     using (var ctx = new DBMobileAppEntities())
     {
         return(ctx.Users.Where(un => un.User_Name == username && un.User_Password == password).FirstOrDefault());
     }
 }