public void CreateGatePassRequest(GatePassRequest gatePass) { var gatePassRepository = new GatePassRequestRepository(_db); gatePassRepository.Add(gatePass); _db.SaveChanges(); }