public void PopulateDropDownList()
 {
     ViewData["CropList"] = new SelectList(cropRepoInterface.ListAllCrops(), "CropID", "CropName");
     ViewData["FarmList"] = new SelectList(farmRepoInterface.ListAllFarms(), "FarmID", "FarmName");
 }
 public void PopulateDropDownList()
 {
     ViewData["CropList"] = new SelectList(cropRepoInterface.ListAllCrops(), "CropID", "CropName");
     ViewData["UserList"] = new SelectList(analystRepoInterface.ListAllAnalysts(), "Id", "LastName");
 }