public List <FCCxCIdentificacionTipo> DATOS_SelectAll() { try { var resTemp1 = bd.pr_FCCxCIdentificacionTipo_SeleccionarTodos((new ObjectParameter("iCodError", "0"))).ToList(); //TODO List <FCCxCIdentificacionTipo> res = new List <FCCxCIdentificacionTipo>(); foreach (var r in resTemp1) { FCCxCIdentificacionTipo n = new FCCxCIdentificacionTipo() { Dsc_TipoIdentif = r.Dsc_TipoIdentif, Id_TipoIdentif = r.Id_TipoIdentif }; res.Add(n); } return(res); } catch (Exception ex) { var msgError = ex.Message; } return(null); }
public bool DATOS_update(FCCxCIdentificacionTipo obj) { try { var resultado = bd.pr_FCCxCIdentificacionTipo_Actualizar((int)obj.Id_TipoIdentif, obj.Dsc_TipoIdentif, new ObjectParameter("iCodError", "0")); if (resultado == 1) { return(true); } else { return(false); } } catch (Exception ex) { var msgError = ex.Message; return(false); } }
public bool DATOS_insertar(FCCxCIdentificacionTipo obj) { try { var resultado = bd.pr_FCCxCIdentificacionTipo_Insertar(obj.Dsc_TipoIdentif, new ObjectParameter("iId_TipoIdentif", "0"), new ObjectParameter("iCodError", "0")); if (resultado == 1) { return(true); } else { return(false); } } catch (Exception ex) { var msgError = ex.Message; return(false); } }