public override TipoServicio ReadBy(int id)
        {
            TipoServicio result          = default(TipoServicio);
            var          tipoServicioDAC = new TipoServicioDAC();

            result = tipoServicioDAC.ReadBy(id);
            return(result);
        }
        public TipoServicio BuscarPorId(int id)
        {
            TipoServicio result          = default(TipoServicio);
            var          tipoServicioDAC = new TipoServicioDAC();

            result = tipoServicioDAC.ReadBy(id);
            return(result);
        }
예제 #3
0
        public TipoServicio GetByID(int ID)
        {
            TipoServicio result          = default(TipoServicio);
            var          tiposervicioDAC = new TipoServicioDAC();

            result = tiposervicioDAC.ReadBy(ID);
            return(result);
        }
예제 #4
0
        public TipoServicio Find(int?id)
        {
            TipoServicio result          = default(TipoServicio);
            var          tipoServicioDAC = new TipoServicioDAC();

            result = tipoServicioDAC.ReadBy(id.Value);
            return(result);
        }
예제 #5
0
        public TipoServicio Details(int Id)
        {
            TipoServicio result          = default(TipoServicio);
            var          tipoServicioDAC = new TipoServicioDAC();

            result = tipoServicioDAC.ReadBy(Id);
            return(result);
        }
        public TipoServicio Eliminar(int id)
        {
            TipoServicio result          = default(TipoServicio);
            var          tipoServicioDAC = new TipoServicioDAC();

            try
            {
                result = tipoServicioDAC.ReadBy(id);
                tipoServicioDAC.Delete(id);
                return(result);
            }
            catch (Exception)
            {
                throw;
            }
        }