Ejemplo n.º 1
0
        public StudentOrganisationApp.App_Data.OrgCategory getOrgCategoryByID(int catID)
        {
            var orgCat = dataContext.sp_GetOrgCategoryByID(catID).First();

            StudentOrganisationApp.App_Data.OrgCategory orgCategory = new App_Data.OrgCategory();
            orgCategory.CategoryName = orgCat.CategoryName;
            orgCategory.Description  = orgCat.Description;
            orgCategory.EndDate      = orgCat.EndDate;
            orgCategory.AddDate      = orgCat.AddDate;
            orgCategory.GreekOrg     = orgCat.GreekOrg;

            return(orgCategory);
        }