public SnapmailInfoModel Put(string key, SnapmailModel data) { return(SnapmailModel.ToInfoModel(SnapmailDao.Update(key, SnapmailModel.ToRowData(key, data)))); }
public SnapmailInfoModel Post(SnapmailModel data) { SnapmailRowData rowdata = SnapmailModel.ToRowData(data); return(SnapmailModel.ToInfoModel(SnapmailDao.Insert(rowdata))); }