public JsonResult Guardar(tbl_registro_pago model) { var rm = new ResponseModel(); var response = model.SaveRegistro(); return(Json(response)); }
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)); }
public ActionResult Obtener(tbl_registro_pago model) { return(Redirect("~/Admin/Registro/crud?id_empleado=" + model.id_empleado)); }