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); }
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); }
public static void UpdateTechFuncModel(TechFuncViewModel bus) { TechFuncMethod.UpdateTechFuncModel(MapTechFunc(bus)); }
public static void DestroyTechFuncModel(TechFuncViewModel bus) { TechFuncMethod.DestroyTechFuncModel(MapTechFunc(bus)); }