示例#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 GetTechFuncByIDDatasource(int id, [DataSourceRequest] DataSourceRequest request)
        {
            DataSourceResult result = TechFuncMethod.TechFuncByID(id, request).ToDataSourceResult(request, tech => new TechFuncViewModel
            {
                ID      = tech.ID,
                Code    = tech.Code,
                Title   = tech.Title,
                Comment = tech.Comment
            });

            return(result);
        }
示例#3
0
 public static void UpdateTechFuncModel(TechFuncViewModel bus)
 {
     TechFuncMethod.UpdateTechFuncModel(MapTechFunc(bus));
 }
示例#4
0
 public static void DestroyTechFuncModel(TechFuncViewModel bus)
 {
     TechFuncMethod.DestroyTechFuncModel(MapTechFunc(bus));
 }