public ActionResult Create(FCCxCSocioTipo obj) { if (ModelState.IsValid) { var res = NEGOCIO_SocioTipo.NEGOCIO_insertar(obj); return(RedirectToAction("Index")); } return(View(obj)); }
public ActionResult Edit([Bind(Include = "IdTipoDeudor,DscTipoDeudor")] FCCxCSocioTipo obj) { var res = NEGOCIO_SocioTipo.NEGOCIO_update(obj); if (ModelState.IsValid) { return(RedirectToAction("Index")); } return(View(obj)); }
public static bool NEGOCIO_delete(FCCxCSocioTipo obj) { try { var resultado = new DATOS_SocioTipo().DATOS_delete(obj.IdTipoDeudor); return(resultado); } catch (Exception ex) { var msgError = ex.Message; return(false); } }
public static bool NEGOCIO_insertar(FCCxCSocioTipo obj) { try { var resultado = new DATOS_SocioTipo().DATOS_insertar(obj); return(resultado); } catch (Exception ex) { var msgError = ex.Message; return(false); } }