Пример #1
0
        public PartialViewResult Edit(long id)
        {
            var data = brandDAL.Getone(id);

            ViewBag.FormName = "EditBrand";
            return(PartialView("Add",
                               new BrandVM()
            {
                ID = data.ID,
                Name = data.Name,
                CreatedBy = data.CreatedBy,
                CreationDate = data.CreationDate,
                UpdatedBy = data.UpdatedBy,
                UpdatedDate = data.UpdatedDate,
                Image = data.Image
            }
                               ));
        }