Ejemplo n.º 1
0
        public ActionResult Edit(PostNatal_Infant model)
        {
            try
            {
                obj.Update(model, out outmodel);
                if (!outmodel.Error)
                {
                    // TODO: Add update logic here

                    return(RedirectToAction("Index"));
                }
                else
                {
                    return(View(model));
                }
            }
            catch (Exception ex)
            {
                ex.Message.ToString();
                return(View());
            }
        }
Ejemplo n.º 2
0
        public ActionResult Create(PostNatal_Infant model)
        {
            var toReturn = obj.Save(model, out outmodel);

            return(Json(new { mdl = outmodel, pa = toReturn }, JsonRequestBehavior.AllowGet));
        }