public void TestCreateInterestPointCategory()
        {
            BoraNowSeeder.Seed();
            var ipcipbo = new InterestPointCategoryInterestPointBusinessObject();
            var ipbo    = new InterestPointBusinessObject();
            var cipbo   = new CategoryInterestPointBusinessObject();
            var pbo     = new ProfileBusinessObject();

            var profile = new Profile("II", "AA");

            pbo.Create(profile);

            var c       = new CompanyBusinessObject();
            var company = new Company("A", "B", "12345678", "1234567", profile.Id);

            c.Create(company);

            var interestPoint         = new InterestPoint("a", "b", "c", "d", "e", "f", "g", true, true, company.Id);
            var category              = new CategoryInterestPoint("vegan");
            var interestPointCategory = new InterestPointCategoryInterestPoint(interestPoint.Id, category.Id);

            ipbo.Create(interestPoint);
            cipbo.Create(category);

            var resCreate = ipcipbo.Create(interestPointCategory);
            var resGet    = ipcipbo.Read(interestPointCategory.Id);

            Assert.IsTrue(resGet.Success && resCreate.Success && resGet.Result != null);
        }
        public ActionResult Create([FromBody] InterestPointCategoryInterestPointViewModel vm)
        {
            var c = new InterestPointCategoryInterestPoint(vm.InterestPointId, vm.CategoryId);

            var res  = _bo.Create(c);
            var code = res.Success ? HttpStatusCode.OK : HttpStatusCode.InternalServerError;

            return(new ObjectResult(code));
        }