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