Exemple #1
0
        /// <summary>
        /// Displays selection summary detail view for given genotype.
        /// </summary>
        /// <param name="id">
        /// Id of genotype to display selection summary for.
        /// </param>
        /// <returns>
        /// Detail view for selection summary.
        /// </returns>
        public ActionResult Detail(int?id)
        {
            if (!id.HasValue)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            SelectionSummaryViewModel ssvm = s_repo.GetSelectionSummary(id.Value);

            if (ssvm == null)
            {
                return(HttpNotFound());
            }
            ViewBag.GenusId   = m_repo.GetGenotype(id.Value).Family.GenusId;
            ViewBag.FlatTypes = new SelectList(m_repo.GetFlatTypes(), "Id", "Label");
            return(View(ssvm));
        }
 // GET: Admin/FlatTypes
 public ActionResult Index()
 {
     return(View(m_repo.GetFlatTypes()));
 }