public string emailAvailable(Feeder feeder) { try { result = orm.execObject<Result>(feeder, "api.admin_feeder_email_available"); } catch (Exception exp) { errorResult(exp); } return formattedResult(result); }
public string collectors(Feeder feeder) { try { result = orm.execObject<Result>(feeder, "api.admin_feeder_collectors"); } catch (Exception exp) { errorResult(exp); } return formattedResult(result); }
public string create(Feeder feeder) { try { result = orm.execObject<Result>(feeder, "api.admin_feeder_email_signup"); if (result.dbMessage == null) { result.Feeder.sendWelcomeEmail(); } } catch (Exception exp) { errorResult(exp); } return formattedResult(result); }
public string forgotPwd(Feeder feeder) { try { feeder.activationToken = Guid.NewGuid().ToString(); result = orm.execObject<Result>(feeder, "api.admin_feeder_pwd_forgot"); if (result.dbMessage == null) { result.Feeder.sendPwdForgot(); } } catch (Exception exp) { errorResult(exp); } return formattedResult(result); }
public string updatePwd(Feeder feeder) { try { result = orm.execObject<Result>(feeder, "api.admin_feeder_update_pwd"); } catch (Exception exp) { errorResult(exp); } return formattedResult(result); }