public MailBot query() { using (var _dcm = new DatabaseConnectionManager()) { MailBot mailBot = _dcm.MailBots.First(); return(mailBot); } }
//create clone model of MailBot so I don not skip a layer by using database models //directly in views and controllers public BMailBot convertToBMailBot(MailBot mailBot) { return(new BMailBot { Username = mailBot.Username, Password = mailBot.Password }); }
public GetMailBotResponse(MailBot response) { this.response = response; }