// Converts List to SelectListItems
        // @returns a list of service locations
        private List <SelectListItem> GetSerLocationList()
        {
            ServiceShiftTypeController serviceShiftTypeControllerObj = new ServiceShiftTypeController(_context);

            List <SelectListItem> list = serviceShiftTypeControllerObj.serLocationList.ConvertAll <SelectListItem>(item =>
            {
                return(new SelectListItem()
                {
                    Text = item,
                    Value = item,
                    Selected = false
                });
            });

            return(list);
        }
        // Converts List to SelectListItems
        // @returns a list of service start and end time
        private List <SelectListItem> GetSerStartEndTime()
        {
            ServiceShiftTypeController serviceShiftTypeControllerObj = new ServiceShiftTypeController(_context);

            List <SelectListItem> list = serviceShiftTypeControllerObj.startToEndTimeList.ConvertAll <SelectListItem>(item =>
            {
                return(new SelectListItem()
                {
                    Text = item.ToString(),
                    Value = item.ToString(),
                    Selected = false
                });
            });

            return(list);
        }
        /************************************** Select Lists for Form **************************************/

        // Converts List to SelectListItems
        // @returns a list with the Text = service titles and Value = service Id
        private List <SelectListItem> GetSerTitleList()
        {
            ServiceShiftTypeController serviceShiftTypeControllerObj = new ServiceShiftTypeController(_context);

            List <SelectListItem> list = serviceShiftTypeControllerObj.serviceIdTitleList.ConvertAll <SelectListItem>(item =>
            {
                return(new SelectListItem()
                {
                    Text = item.servTitle,
                    Value = item.id.ToString(),
                    Selected = false
                });
            });

            return(list);
        }