예제 #1
0
        public Entities.PortFolio Update(Entities.PortFolio portfolio)
        {
            PortFolioRepository portrepo = new PortFolioRepository();


            portrepo.Update(portfolio);
            return(portfolio);
        }
예제 #2
0
        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());
            }
        }