public async Task<IHttpActionResult> GetCompany()
        {
            string reg = User.Identity.GetUserId();
            Company company = await db.Companies.Where(d => d.registrationId == reg).SingleOrDefaultAsync();
            if (company == null)
            {
                return NotFound();
            }

            CompanyProfileDTO profile = new CompanyProfileDTO()
            {
                company_id = company.Id,
                company_category = company.category,
                name = company.companyName,
                email_address = company.email,
                profile_pic = company.profilePicture,
                wall_pic = company.wallpaper,
                facebook = company.fb_url,
                fax_num = company.fax,
                linkdn = company.lkdn_url,
                physical_address = company.address,
                google_plus = company.ggle_plus,
                statusMessage = company.statusMessage,
                telephone = company.tel,
                twitter = company.twt_url,
                web_url = company.website
            };

            return Ok(profile);
        }
 public async Task<IHttpActionResult> GetCompanyByID(int id)
 {
     Company company = await db.Companies.FindAsync(id);
     if (company == null)
     {
         return NotFound();
     }
     CompanyProfileDTO profile = new CompanyProfileDTO()
     {
         company_id = company.Id,
         company_category = company.category,
         name = company.companyName,
         email_address = company.email,
         profile_pic = company.profilePicture,
         wall_pic = company.wallpaper,
         facebook = company.fb_url,
         fax_num = company.fax,
         linkdn = company.lkdn_url,
         physical_address = company.address,
         google_plus = company.ggle_plus,
         statusMessage = company.statusMessage,
         telephone = company.tel,
         twitter = company.twt_url,
         web_url = company.website
     };
     return Ok(profile);
 }