public IHttpActionResult Get() { CompanyProfileServices companyService = CreateCompanyProfileService(); var companies = companyService.GetCompanies(); return(Ok(companies)); }
private CompanyProfileServices CreateCompanyProfileService() { var userId = Guid.Parse(User.Identity.GetUserId()); var companyService = new CompanyProfileServices(userId); return(companyService); }