Exemple #1
0
        /// <summary>
        /// Update
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static CatalogQuantumModel Update(CatalogQuantumModel model)
        {
            // init new entity
            var entity = new cat_Quantum();

            // set entity props
            model.FillEntity(ref entity);

            // update
            return(new CatalogQuantumModel(cat_QuantumServices.Update(entity)));
        }
Exemple #2
0
        /// <summary>
        /// Create
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static CatalogQuantumModel Create(CatalogQuantumModel model)
        {
            // init entity
            var entity = new cat_Quantum();

            // get entity from db
            model.FillEntity(ref entity);

            // return
            return(new CatalogQuantumModel(entity));
        }