public static List <Formulario> GetFormulariosFiltro(Formulario pFormulario) { try { return(FormularioRepositorio.GetFormularios(pFormulario)); } catch (Exception ex) { throw ex; } }
public static Formulario SaveFormulario(Formulario pFormulario) { try { return(pFormulario.FormularioID > 0 ? FormularioRepositorio.Update(pFormulario) : FormularioRepositorio.Insert(pFormulario, true)); } catch (Exception ex) { throw ex; } }
public static void DeleteFormulario(int pFormularioID) { try { var vFormulario = FormularioRepositorio.Get(pFormularioID); FormularioRepositorio.Delete(vFormulario); } catch (Exception ex) { throw ex; } }
public static List <Formulario> GetFormularios() { return(FormularioRepositorio.Get()); }