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); }
public List <SmsinfosprModel> FindAll(string condition = "", string order = "") { SmsinfosprRepository _repo = new SmsinfosprRepository(); return(_repo.FindAll(condition, order)); }