public Messages Load(Dictionary <string, string> @params) { using (MessagesRepository repo = new MessagesRepository(base.DataContext)) { return((Messages)repo.Load <Message>(this, repo.GetItems(@params))); } }
public Messages Load() { using (MessagesRepository repo = new MessagesRepository(base.DataContext)) { return((Messages)repo.Load <Message>(this, repo.GetItems())); } }