public CompanyViewModel CompanyRegister(CompanyViewModel newCompany) { CompanyViewModel result = new CompanyViewModel(); try { PractitionerData dataLayer = new PractitionerData(); result = dataLayer.CreateCompany(newCompany); } catch (Exception err) { new LogHelper().LogMessage("PractitionerBusiness.CompanyRegister : " + err); } return(result); }