public ActionResult MantenerVentanilla(Datos.Ventanilla pVentanilla) { pVentanilla.Denominacion = pVentanilla.Denominacion.ToUpper(); if (pVentanilla.Id == 0) { Negocio.VentanillaBL.Crear(pVentanilla); } else { Negocio.VentanillaBL.ActualizarParcial(pVentanilla, x => x.Denominacion, x => x.ServicioId); } return(Json(pVentanilla, JsonRequestBehavior.AllowGet)); }
public ActionResult Guardar(Datos.Ventanilla ventanilla, string activo) { var rm = new Comun.ResponseModel(); try { if (ventanilla.Id == 0) { VentanillaBL.Crear(ventanilla); } else { VentanillaBL.ActualizarParcial(ventanilla, x => x.Denominacion, x => x.UsuarioId, x => x.ServicioId); } rm.SetResponse(true); rm.href = Url.Action("Index", "Ventanilla"); } catch (Exception ex) { rm.SetResponse(false, ex.Message); } return(Json(rm, JsonRequestBehavior.AllowGet)); }