Пример #1
0
        public JsonResult Guardar(tbl_registro_pago model)
        {
            var rm = new ResponseModel();

            var response = model.SaveRegistro();

            return(Json(response));
        }
Пример #2
0
        public JsonResult Guardar(tbl_registro_pago model)
        {
            var rm = new ResponseModel();

            model.estado = "A";
            model.total  = model.total - model.faltante;
            if (ModelState.IsValid)
            {
                model = model.SaveRegistro();

                if (model != null)
                {
                    rm.SetResponse(true, "registro registrado con exito");
                    rm.href = Url.Content("~/admin/registro/");
                }
                else
                {
                    rm.SetResponse(false, "no se ha podido ingresar registro");
                }
            }
            return(Json(rm));
        }
Пример #3
0
 public ActionResult Obtener(tbl_registro_pago model)
 {
     return(Redirect("~/Admin/Registro/crud?id_empleado=" + model.id_empleado));
 }