public ActionResult Review(VendorReviewModel model)
        {
            InitializeTestPrincipal();
            var mock = new MockVendor();
            var summariesDummyData = mock.GetVendorSummariesModel();

            switch (model.State)
            {
                case "delete":
                    //delete the record
                    break;
                case "viewdetail":
                    //populate the viewdetail model
                    VendorDetailViewModel detail = mock.GetVendor(int.Parse(model.EventArgs));
                    model.VendorDetailViewModel = detail;
                    break;
                case "savedetail":
                    detail = mock.GetVendor(int.Parse(model.EventArgs));
                    ModelState.Clear();
                    model.VendorDetailViewModel = detail;
                    break;
                case "view":
                    //do nothing
                    break;
            }
            //clear state
            model.EventArgs = string.Empty;

            model.VendorsForReview = summariesDummyData;
            return View(model);
        }
        public ActionResult Review()
        {
            InitializeTestPrincipal();
            var mock = new MockVendor();
            var summariesDummyData = mock.GetVendorSummariesModel();
            var model = new VendorReviewModel { State = "view", VendorsForReview = summariesDummyData };

            return View(model);
        }