public void InsertSurvey(Survery entity)
        {
            if (entity == null)
                throw new ArgumentNullException("Survery");

            _surveryRepository.Insert(entity);
        }
        public ActionResult Survey(SurveryModel model)
        {
            Survery entity = new Survery();

            var order = _orderService.GetOrderByGuid(model.SurveryGuid);

            if (ModelState.IsValid)
            {
                entity.OrderId = order.Id;
                entity.SurveryGuid = order.OrderGuid;
                entity.Question1 = 0;// Convert.ToInt32(model.Question1);
                entity.Question2 = Convert.ToInt32(model.Question2);
                entity.Question3 = Convert.ToInt32(model.Question3);
                entity.Question4 = Convert.ToInt32(model.Question4);
                entity.CreatedOnUtc = DateTime.UtcNow;

                _orderService.InsertSurvey(entity);

                order.IsCustomerQa = true;
                order.LastUpdatedDateUtc = DateTime.UtcNow;
                _orderService.UpdateOrder(order);

                return RedirectToRoute("SurveyConfirmation");
            }
            return View(model);
        }