public HttpResponseMessage GetTeamStructureUsinggGeneratedmiscodelevelyearWMB(HttpRequestMessage request)
        {
            HttpResponseMessage res = null;

            var teamstructure = new TeamStructureWMBRepository();

            IEnumerable <TeamStructureData> teamStructureDataList = teamstructure.GetTeamStructureByMISCodeLevelYear();

            res = request.CreateResponse <IEnumerable>(HttpStatusCode.OK, teamStructureDataList);

            return(res);
        }
        public HttpResponseMessage GetTeamStructureBySelectionWMB(HttpRequestMessage request, string selectedcode, int selectedyear, string selectedlevel, string selectedmisname)
        {
            HttpResponseMessage res = null;

            System.Web.HttpContext.Current.Session["session_currentlyselectedmiscode"] = selectedcode;
            System.Web.HttpContext.Current.Session["session_currentlyselectedlevel"]   = selectedlevel;
            System.Web.HttpContext.Current.Session["session_currentlyselectedmisname"] = selectedmisname;

            var teamstructure = new TeamStructureWMBRepository();

            IEnumerable <TeamStructureData> teamStructureDataList = teamstructure.GetTeamStructureBySelectedMisCodeAndYear(selectedcode, selectedyear);

            res = request.CreateResponse <IEnumerable>(HttpStatusCode.OK, teamStructureDataList);

            return(res);
        }