Example #1
0
        public IEnumerable <Mission> GetMission()
        {
            List <Mission> mission     = new List <Mission>();
            DataTable      dt          = new DataTable();
            MissionData    missionData = new MissionData();

            try
            {
                dt = missionData.GetMission();

                if (dt.Rows.Count > 0)
                {
                    mission = this.MapMission(dt);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(mission);
        }