public Entities.PortFolio Update(Entities.PortFolio portfolio) { PortFolioRepository portrepo = new PortFolioRepository(); portrepo.Update(portfolio); return(portfolio); }
public ActionResult Edit(int id, FormCollection collection, Models.PortFolio portfolio) { try { ZonaFl.Business.SubSystems.SPortfolio portF = new Business.SubSystems.SPortfolio(); Entities.PortFolio portfolioU = new Entities.PortFolio(); portfolioU.InjectFrom(portfolio); portF.Update(portfolioU); // TODO: Add update logic here return(RedirectToAction("Details", id)); } catch { return(View()); } }