public static async Task <Response <SistemasResponse> > UpdateSistemas(short ID_tb_Sistema_Mant, string Descripcion)
        {
            Response <SistemasResponse> response;
            SistemasEntity objSistemas;

            try
            {
                objSistemas = await SistemasData.UpdateSistemas(ID_tb_Sistema_Mant, Descripcion);

                response = new Response <SistemasResponse>
                {
                    EsCorrecto = true,
                    Valor      = new SistemasResponse
                    {
                        Sistemas = objSistemas
                    },
                    Mensaje = "OK",
                    Estado  = true,
                };

                return(response);
            }
            catch (FaultException <ServiceError> )
            {
                throw;
            }
            catch (Exception ex)
            {
                return(new Response <SistemasResponse>(false, null, Functions.MessageError(ex), false));
            }
        }
        public static Response <SistemasResponse> SelectSistemas()
        {
            try
            {
                Response <SistemasResponse> response;
                List <SistemasEntity>       List;

                List = SistemasData.SelectSistemas();

                response = new Response <SistemasResponse>
                {
                    EsCorrecto = true,
                    Valor      = new SistemasResponse {
                        List = List
                    },
                    Mensaje = "OK",
                    Estado  = true,
                };

                return(response);
            }
            catch (Exception ex)
            {
                return(new Response <SistemasResponse>(false, null, Functions.MessageError(ex), false));
            }
        }
        public static async Task <Response <SistemasResponse> > ListSistemas(short ID_tb_Sistema_Mant)
        {
            Response <SistemasResponse> response;
            SistemasEntity objSistemas;

            try
            {
                objSistemas = await SistemasData.ListSistemas(ID_tb_Sistema_Mant);

                //  objSistemas = await SistemasData.Descripcion(objSistemas);

                if (objSistemas == null)
                {
                    BusinessException.Generar(Constants.CODIGO_VACIO);
                }



                response = new Response <SistemasResponse>
                {
                    EsCorrecto = true,
                    Valor      = new SistemasResponse
                    {
                        Sistemas = objSistemas
                    },
                    Mensaje = "OK",
                    Estado  = true,
                };

                return(response);
            }
            catch (FaultException <ServiceError> )
            {
                throw;
            }
            catch (Exception ex)
            {
                return(new Response <SistemasResponse>(false, null, Functions.MessageError(ex), false));
            }
        }