public object GetDistCodeByPmhone(string pmphone) { try { return(_distributorService.GetDistCodeByPmhone(pmphone)); } catch (Exception ex) { return(errorLogService.InsertToErrorLog(ex, MethodBase.GetCurrentMethod().Name, Request.Headers["UserInfo"].ToString())); } }