public void AddRequest(tb_request req)
        {
            _context.Add(req);
            _context.SaveChanges();

            return;
        }
        public bool SaveRequest(tb_request req)
        {
            _context.Attach(req);
            _context.Entry(req).State = (req.RequestID == 0) ? EntityState.Added : ((_context.Entry(req).State != EntityState.Deleted) ? EntityState.Modified : _context.Entry(req).State);

            return(_context.SaveChanges() > 0);
        }
 public void RemoveRequest(tb_request request)
 {
     _context.Remove(request);
     _context.SaveChanges();
 }