コード例 #1
0
        public static List <TechFuncViewModel> GetTechFuncsWith_ID_And_Code()
        {
            List <TechFuncViewModel> result = new List <TechFuncViewModel>();

            result = TechFuncMethod.getTechFuncs().Select(product => new TechFuncViewModel
            {
                ID   = product.ID,
                Code = product.Code
            }).ToList();
            return(result);
        }
コード例 #2
0
        public static DataSourceResult GetTechFuncDatasource([DataSourceRequest] DataSourceRequest request)
        {
            DataSourceResult result = TechFuncMethod.getTechFuncs(request).ToDataSourceResult(request, tech => new TechFuncViewModel
            {
                ID      = tech.ID,
                Code    = tech.Code,
                Title   = tech.Title,
                Comment = tech.Comment
            });

            return(result);
        }