Ejemplo n.º 1
0
        public RedirectToActionResult Create(Product record)
        {
            record.Source  = "MongoDB";
            record.counter = -1;
            Product newProduct = _repositoryManagement.Create <Product>(record);

            return(RedirectToAction("details", new { id = newProduct.PrimaryId }));
        }
Ejemplo n.º 2
0
        public T Create <T>(T record)
        {
            var st = _RepositoryManagement.Create <T>(record);

            return(st);
        }