コード例 #1
0
        public IHttpActionResult Get()
        {
            CompanyProfileServices companyService = CreateCompanyProfileService();
            var companies = companyService.GetCompanies();

            return(Ok(companies));
        }
コード例 #2
0
        private CompanyProfileServices CreateCompanyProfileService()
        {
            var userId         = Guid.Parse(User.Identity.GetUserId());
            var companyService = new CompanyProfileServices(userId);

            return(companyService);
        }