Example #1
0
        public ActionResult Details(int id)
        {
            var crmPotential = _crmPotentialRepository.GetBy(c => c.Id == id, "Contact.Person,AssignedToUser.Person,SalesStage");

            ViewBag.SalesStagesId = new SelectList(_crmSalesStageRepository.GetAll(), "Id", "Name", crmPotential.SalesStageId);
            var vm = new CRMPotentialDetailsViewModel(crmPotential);

            return(View(vm));
        }
Example #2
0
        public JsonResult Index()
        {
            var apiResult = TryExecute(() => _crmSalesStageRepository.GetAll(), "Sales Stages Fetched sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }