Ejemplo n.º 1
0
        public ActionResult CreatePersonalPlant(PersonalPlantModel pp)
        {
            int aID = service.FindAccount(User.Identity.Name.ToString()).ID;

            service.AddPersonalPlant(Int32.Parse(pp.PId), aID, pp.WDuration, pp.NName);

            return(RedirectToAction("Index", "User"));
        }