public T Find(object id)
        {
            try
            {
                return(_context.Set <T>().Find(id));
            }
            catch (Exception ex)
            {
                BStatus.ErrorOnFind(_context.Set <T>().GetType().Name, ex.Message);
            }

            return(null);
        }
        public T First(Func <T, bool> query)
        {
            try
            {
                return(_context.Set <T>().FirstOrDefault(query));
            }
            catch (Exception ex)
            {
                BStatus.ErrorOnFind(_context.Set <T>().GetType().Name, ex.Message);
            }

            return(null);
        }