public static string QueryPerson(string Name, string TypeID, string Road) { //TODO //处理业务逻辑 RoadSolution.BLL.User userbll = new RoadSolution.BLL.User(); string resultjson = userbll.ListJsonByKeyword(Name, TypeID, Road); //RESPONSE return(resultjson); }
public static void RegisterUser(string Username, string Password, string TypeID) { RoadSolution.BLL.User ubll = new RoadSolution.BLL.User(); RoadSolution.Model.User u = new RoadSolution.Model.User(); u.Username = Username; u.Password = Password; u.TypeID = TypeID; u.UserID = Guid.NewGuid().ToString(); ubll.Add(u); }