public SmsinfomsgModel FindOne(int ID) { SmsinfomsgRepository _repo = new SmsinfomsgRepository(); SmsinfomsgModel theMsg = _repo.FindAll("ID=" + ID.ToString())[0]; this.ID = theMsg.ID; this.Name = theMsg.Name; this.Text = theMsg.Text; this.SmsinfosprID = theMsg.SmsinfosprID; return(this); }
public void Delete() { SmsinfomsgRepository _repo = new SmsinfomsgRepository(); _repo.Delete(this); }
public void Update() { SmsinfomsgRepository _repo = new SmsinfomsgRepository(); _repo.Update(this); }
public void Create() { SmsinfomsgRepository _repo = new SmsinfomsgRepository(); _repo.Create(this); }
public List <SmsinfomsgModel> FindAll(string condition = "", string order = "") { SmsinfomsgRepository _repo = new SmsinfomsgRepository(); return(_repo.FindAll(condition, order)); }