public ActionResult GetUsers() { User user = new User(); ModelList<User> users = user.getBy<User>(); return Content(users.ToJson()); }
/// <summary> /// Users the authentify. /// </summary> /// <returns> /// The authentify. /// </returns> /// <param name='user'> /// User. /// </param> protected virtual User userAuthentify(User user) { ModelList<User> users = new ModelList<User>(); users = user.getBy<User>(); if(users.Count > 0) { return users[0]; } else { return null; } }