public int AddInvalidEmail(IInvalidEmail model) { var item = new InvalidEmailList { DisplayName = model.DisplayName, EmailAddress = model.EmailAddress, IsActive = model.IsActive }; Session.Save(item); return(item.EmailID); }
public bool ModifyInvalidEmail(IInvalidEmail model) { var item = Session.Get <InvalidEmailList>(model.EmailID); if (item != null) { item.DisplayName = model.DisplayName; item.EmailAddress = model.EmailAddress; item.IsActive = model.IsActive; Session.SaveOrUpdate(item); return(true); } else { return(false); } }
public bool ModifyInvalidEmail(IInvalidEmail model) { return(Post <bool>("webapi/mail/mass-email/invalid-email/modify", model)); }
public int AddInvalidEmail(IInvalidEmail model) { return(Post <int>("webapi/mail/mass-email/invalid-email/add", model)); }