public JsonResult ArpobarReservaConserje(FormCollection collection) { ReservaDAL bd = new ReservaDAL(); RESERVA nuevo = new RESERVA(); DateTime ahora = DateTime.Now; nuevo.ID_RESERVA = int.Parse(collection["Reserva"].ToString()); nuevo.ESTADO_RESERVA = collection["Accion"].ToString(); var model = bd.AprobarReserva(nuevo); if (model) { var result = new { Success = true, Message = "Succes Message", model }; return(Json(result, JsonRequestBehavior.AllowGet)); } else { var result = new { Success = false, Message = "Error Message" }; return(Json(result, JsonRequestBehavior.AllowGet)); } }