/// <summary> /// Update /// </summary> /// <param name="model"></param> /// <returns></returns> public static CatalogGroupQuantumModel Update(CatalogGroupQuantumModel model) { // init new entity var entity = new cat_GroupQuantum(); // set entity props model.FillEntity(ref entity); // update return(new CatalogGroupQuantumModel(cat_GroupQuantumServices.Update(entity))); }
/// <summary> /// Create /// </summary> /// <param name="model"></param> /// <returns></returns> public static CatalogGroupQuantumModel Create(CatalogGroupQuantumModel model) { // init entity var entity = new cat_GroupQuantum(); // get entity from db model.FillEntity(ref entity); // return return(new CatalogGroupQuantumModel(entity)); }