Пример #1
0
        public SmsinfosprModel FindOne(int ID)
        {
            SmsinfosprRepository _repo  = new SmsinfosprRepository();
            SmsinfosprModel      theSpr = _repo.FindAll("ID=" + ID.ToString())[0];

            this.ID       = theSpr.ID;
            this.Name     = theSpr.Name;
            this.ParentID = theSpr.ParentID;

            return(this);
        }
Пример #2
0
        public List <SmsinfosprModel> FindAll(string condition = "", string order = "")
        {
            SmsinfosprRepository _repo = new SmsinfosprRepository();

            return(_repo.FindAll(condition, order));
        }