public ActionResult Edit(Asset asset)
 {
     if (ModelState.IsValid)
     {
         unitOfWork.Assets.Update(asset);
         unitOfWork.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(asset);
 }
        public ActionResult Create(Asset asset)
        {
            if (ModelState.IsValid)
            {
                unitOfWork.Assets.Add(asset);
                unitOfWork.SaveChanges();
                return RedirectToAction("List");
            }

            return View(asset);
        }