public ActionResult Create(ConceptAdvice conceptAdvice, FormCollection form)
        {
            if (conceptAdvice.ConceptsId == null)
            {
                ModelState.AddModelError("ConceptsId", "Please choose a concept...");
            }
            ValidateAdvice(conceptAdvice);

            if (ModelState.IsValid)
            {
                try
                {
                    _adviceApplicationService.AddConceptAdvice(CurrentMentor, conceptAdvice);

                    return RedirectToAction("Index", "Advice");
                }
                catch
                {
                    return RedirectToAction("Create");
                }
            }

            var concepts = _conceptApplicationService.GetAllConcepts();
            ViewData["Concepts"] = new SelectList(concepts, "Id", "ConceptTerm", conceptAdvice.ConceptsId);
            ViewData["Semaphores"] = _semaphoreApplicationService.GetAllSemaphores();
            SetAdviceTagViewData();
            return View(conceptAdvice);
        }
 public ActionResult Edit(ConceptAdvice conceptAdvice, FormCollection form)
 {
     ValidateAdvice(conceptAdvice);
     if (ModelState.IsValid)
     {
         _adviceApplicationService.UpdateAdvice(conceptAdvice);
         return RedirectToAction("Index", "Advice");
     }
     SetAdviceTagViewData();
     ViewData["Semaphores"] = _semaphoreApplicationService.GetAllSemaphores();
     var advice = _adviceApplicationService.GetAdvice(conceptAdvice.Id.Value) as ConceptAdvice;
     var concept = _conceptApplicationService.GetConcept(advice.ConceptsId.Value);
     ViewData["Concept"] = concept;
     return View(advice);
 }