public DeactivateResultProductModel Deactivate(long id, DeactivateProductModel model)
        {
            BaseClient client = new BaseClient();
            string     url    = "products/deactivate/" + id;

            return(client.Post <DeactivateResultProductModel, DeactivateProductModel>(url, model));
        }
        public IActionResult Deactivate(long id, Guid version)
        {
            DeactivateProductModel model = new DeactivateProductModel()
            {
                Version = version
            };

            try
            {
                ProductManagement pm = new ProductManagement();

                pm.Deactivate(id, model);
            }
            catch (Exception ex)
            {
                return(new ContentResult()
                {
                    Content = "An error has occurred: " + Environment.NewLine + ex.Message
                });
            }

            return(RedirectToAction("Search", null));
        }