Example #1
0
        public ActionResult CreateFonacot(Empleado_Fonacot model)
        {
            Fonacot fon      = new Fonacot();
            var     response = fon.CreateFonacot(model);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public bool CreateFonacot(Empleado_Fonacot model)
        {
            model.Status = true;
            model.Saldo  = model.MontoInicial;
            ctx.Empleado_Fonacot.Add(model);
            var status = ctx.SaveChanges();

            return(status > 0 ? true : false);
        }