// GET: Plots public ActionResult PlotDetails(int id) { var plot = _plotAppService.GetPlot(id); var compartment = _compartmentAppService.GetCompartment(plot.CompartmentId); var sheets = _tallySheetAppService.GetTallySheets(plot); ViewBag.Plot = plot; ViewBag.Compartment = compartment; ViewBag.Sheets = sheets; return(View()); }
// GET: TallySheets/Create public ActionResult Create(int id) { var plot = _plotAppService.GetPlot(id); var sheets = _tallySheetAppService.GetTallySheets(plot); var specieCategories = _specieCategoryAppService.GetSpecieCategories().Select(c => new SelectListItem { Value = c.Id.ToString(), Text = c.Name }); ViewBag.SpecieCategoryId = specieCategories; ViewBag.Plot = plot; ViewBag.Sheets = sheets; return(View()); }