public ActionResult CreateAccount(string memberId) { string result = "ok"; try { LdapUserConfig uc = new LdapUserConfig(memberId, new Lcps.UI.Models.LcpsUiContext()); uc.SyncUser(false); } catch(Exception ex) { ExceptionCollector ec = new ExceptionCollector(ex); result = ec.ToUL(); } return Content(result); }
public ActionResult SyncLdapAccount(Guid id) { string result = "ok"; LdapUserConfig cfg = new LdapUserConfig(id.ToString(), _dbContext); try { cfg.SyncUser(false); } catch (Exception ex) { ExceptionCollector ec = new ExceptionCollector(ex); result = ec.ToUL(); } return Content(result); }