public SigmaResultType AddCompany(TypeCompany objCompany) { SigmaResultType result = new SigmaResultType(); try { CompanyMgr companyMgr = new CompanyMgr(); result = companyMgr.AddCompany(objCompany); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }
public SigmaResultType GetCompany(string companyId) { SigmaResultType result = new SigmaResultType(); try { CompanyMgr companyMgr = new CompanyMgr(); result = companyMgr.GetCompany(companyId); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }
public SigmaResultType MultiCompany(List<TypeCompany> listObj) { SigmaResultType result = new SigmaResultType(); try { CompanyMgr companyMgr = new CompanyMgr(); result = companyMgr.MultiCompany(listObj); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }
public SigmaResultType ListCompany() { SigmaResultType result = new SigmaResultType(); try { CompanyMgr companyMgr = new CompanyMgr(); result = companyMgr.ListCompany(WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters); return result; } catch (Exception ex) { // Log Exception ExceptionHelper.logException(ex); result.IsSuccessful = false; result.ErrorMessage = ex.Message; return result; } }