Exemple #1
0
        public string Update()
        {
            Random rnd  = new Random();
            string name = Guid.NewGuid().ToString();

            _productServices.CreateOrUpdate(new Product()
            {
                Id          = rnd.Next(1, 999),
                Name        = name,
                Description = name
            });
            return("Ok");
        }