AwesomeKiosk.Controllers.ApplicantController.JobSelect C# (CSharp) Method

JobSelect() private method

private JobSelect ( System.Web.Mvc.FormCollection collection ) : System.Web.Mvc.ActionResult
collection System.Web.Mvc.FormCollection
return System.Web.Mvc.ActionResult
        public ActionResult JobSelect(FormCollection collection)
        {
            var JobList = new List<Job>();

            if (collection.Count != 0)
            {
                String fid = collection.Get(0);
                int sid = Convert.ToInt32(fid);
                var store = context.Stores_DbSet.Find(sid);
                //get the job listing and send it to the view
                //var jobs = context.JobListing_DbSet.ToList();

                foreach (Job j in store.JobListings)
                {
                    JobList.Add(j);
                }
            }
            if (JobList.Count == 0)
            {
                JobList.Add(new Job { JobId = 0, Description = "No Jobs Openings Available at this location at this time. Feel free to complete our general application though.", Position = "None"});
            }

            return View(JobList);
        }