public UpdateResult Update(Subdomain subdomain) { var result = new UpdateResult(); try { DbUpdater updater = new DbUpdater(); BindUpdateParameters(subdomain, updater, false); result.Id = updater.Update("sub_domain", "sub_domain_id", subdomain.SubdomainId); } catch (Exception ex) { result.Error = true; result.Message = ex.Message; if (ex.InnerException != null) { result.Message += " Inner: " + ex.InnerException.Message; } } return(result); }
public UpdateResult Update(DomainIgnore domainIgnore) { var result = new UpdateResult(); try { DbUpdater updater = new DbUpdater(); BindUpdateParameters(domainIgnore, updater, false); result.Id = updater.Update("domain_ignore", "domain_ignore_id", domainIgnore.DomainIgnoreId); } catch (Exception ex) { result.Error = true; result.Message = ex.Message; if (ex.InnerException != null) { result.Message += " Inner: " + ex.InnerException.Message; } } return(result); }