예제 #1
0
 public static async Task<ResultDTO<int>> RegistrarArchivo(ArchivoBE.ResponseArchivoBE oPerfil)
 {
     try
     {
         string post = url + "RegistrarArchivo";
         return await ResultPCL<int>.Post(post, oPerfil);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 public static async Task<ResultDTO<ErrorBE>> ModificarArchivo(ArchivoBE.ResponseArchivoBE oPerfil)
 {
     try
     {
         string post = url + "Modificar";
         return await ResultPCL<ErrorBE>.Post(post, oPerfil);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #3
0
 /// <summary>
 /// Lista de los perfiles de usuario
 /// </summary>
 /// <returns>lista de perfiles</returns>
 public static async Task<ResultDTO<ArchivoBE.Response>> ListarArchivos()
 {
     try
     {
         string get = url + "Listar";
         return await ResultPCL<ArchivoBE.Response>.GetResult(get);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #4
0
 public static async Task<ResultDTO<ArchivoBE.Response>> BuscarArchivo(int IdPerfil)
 {
     try
     {
         string get = url + string.Format("Buscar/{0}", IdPerfil);
         return await ResultPCL<ArchivoBE.Response>.GetResult(get);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #5
0
 public static async Task <ResultDTO <ErrorBE> > ModificarDoctor(DoctorBE.ResponseDoctoreBE usuario)
 {
     try
     {
         string post = urlD + "Modificar";
         return(await ResultPCL <ErrorBE> .Post(post, usuario));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #6
0
 public static async Task<ResultDTO<ArchivoBE.ResponseArchivoBE>> DatosRegistrar()
 {
     try
     {
         string get = url + "DatosRegistrar";
         return await ResultPCL<ArchivoBE.ResponseArchivoBE>.GetResult(get);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #7
0
 public static async Task <ResultDTO <DoctorBE.Response> > ListarDoctores()
 {
     try
     {
         string get = urlD + "Listar";
         return(await ResultPCL <DoctorBE.Response> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #8
0
 public static async Task <ResultDTO <ErrorBE> > ModificarUsuario(ResponseLoginBE usuario)
 {
     try
     {
         string post = urlU + "Modificar";
         return(await ResultPCL <ErrorBE> .Post(post, usuario));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #9
0
 public static async Task <ResultDTO <PerfilDTO> > BuscarPerfil(int IdPerfil)
 {
     try
     {
         string get = url + string.Format("Buscar/{0}", IdPerfil);
         return(await ResultPCL <PerfilDTO> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #10
0
 public static async Task <ResultDTO <PerfilDTO> > RegistrarPerfil(PerfilDTO oPerfil)
 {
     try
     {
         string post = url + "Registrar";
         return(await ResultPCL <PerfilDTO> .Post(post, oPerfil));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #11
0
 public static async Task <ResultDTO <ErrorBE> > ModificarMarcasModelos(MarcaModeloBE.ResponseMarcaModeloBE oPerfil)
 {
     try
     {
         string post = url + "Modificar";
         return(await ResultPCL <ErrorBE> .Post(post, oPerfil));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #12
0
 /// <summary>
 /// Lista de los perfiles de usuario
 /// </summary>
 /// <returns>lista de perfiles</returns>
 public static async Task <ResultDTO <List <PerfilBE> > > ListarPerfiles()
 {
     try
     {
         string get = url + "Listar";
         return(await ResultPCL <List <PerfilBE> > .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #13
0
 public static async Task <ResultDTO <MarcaModeloBE.Response> > BuscarMarcasModelos(int IdPerfil)
 {
     try
     {
         string get = url + string.Format("Buscar/{0}", IdPerfil);
         return(await ResultPCL <MarcaModeloBE.Response> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #14
0
 public static async Task <ResultDTO <ErrorBE> > RegistrarGuardia(GuardiaBE.ResponseGuardiaBE oPerfil)
 {
     try
     {
         string post = url + "Registrar";
         return(await ResultPCL <ErrorBE> .Post(post, oPerfil));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #15
0
 /// <summary>
 /// Lista de los perfiles de usuario
 /// </summary>
 /// <returns>lista de perfiles</returns>
 public static async Task <ResultDTO <MarcaModeloBE.Response> > ListarMarcasModelos()
 {
     try
     {
         string get = url + "Listar";
         return(await ResultPCL <MarcaModeloBE.Response> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #16
0
 public static async Task <ResultDTO <ErrorBE> > RegistrarMenu(MenuBE.ResponseMenuBE usuario)
 {
     try
     {
         string post = url + "Registrar";
         return(await ResultPCL <ErrorBE> .Post(post, usuario));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #17
0
 /// <summary>
 /// Lista de los perfiles de usuario
 /// </summary>
 /// <returns>lista de perfiles</returns>
 public static async Task <ResultDTO <GuardiaBE.Response> > ListarGuardias()
 {
     try
     {
         string get = url + "Listar";
         return(await ResultPCL <GuardiaBE.Response> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #18
0
 public static async Task <ResultDTO <MenuBE.Response> > GetMenuById(int IdUsuario)
 {
     try
     {
         string get = url + string.Format("Buscar/{0}", IdUsuario.ToString());
         return(await ResultPCL <MenuBE.Response> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #19
0
 public static async Task <ResultDTO <MenuTypeBE.Response> > ListarTypeMenus()
 {
     try
     {
         string get = url + "ListarType";
         return(await ResultPCL <MenuTypeBE.Response> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #20
0
 /// <summary>
 /// Lista de los perfiles de usuario
 /// </summary>
 /// <returns>lista de perfiles</returns>
 public static async Task <ResultDTO <ActividadBE.Response> > ListarActividades(int IdUsuario)
 {
     try
     {
         string get = url + string.Format("Listar/{0}", IdUsuario);
         return(await ResultPCL <ActividadBE.Response> .GetResult(get));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #21
0
        public static async Task <ResultDTO <Response> > Login(RequestLoginBE requestLoginBE)
        {
            try
            {
                string post   = url + "AutenticarUsuario";
                var    result = await ResultPCL <Response> .Post(post, requestLoginBE);

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #22
0
        public static async Task <ResultDTO <int> > NotificaLogin(RequestLoginBE requestLoginBE)
        {
            try
            {
                string post   = url + "NotificaUsuario";
                var    result = await ResultPCL <int> .Post(post, requestLoginBE);

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #23
0
        public static async Task <ResultDTO <List <CentroDTO> > > Listar()
        {
            string get = url + string.Format("List");

            return(await ResultPCL <List <CentroDTO> > .GetResult(get));
        }