public ActionResult Edit(int Id)
        {
            dynamic data;

            try
            {
                data = repo.GetProductsById(Id).Result;
            }
            catch (Exception ex)
            {
                throw;
            }
            return(PartialView(data));
        }
Пример #2
0
        public ActionResult Edit(int Id)
        {
            Products data = new Products();

            try
            {
                data = repo.GetProductsById(Id: Id).Result;
            }
            catch (Exception ex)
            {
                throw;
            }
            return(View(data));
        }