Example #1
0
        public void specificationMethod()
        {
            ISaleLeadRepository saleLeadRepo = new SaleLeadRepository(db);

            var specification = new Specification <SaleLead>(s => s.Id == 1);
            var company       = saleLeadRepo.Find(specification);
        }
Example #2
0
        public SaleLead CreateSaleLead(int stateId, int customerId, DateTime timeStamp)
        {
            ISaleLeadRepository saleLeadRepo = new SaleLeadRepository(db);
            var saleLead = new SaleLead {
                StateId = stateId, CustomerId = customerId, Timestamp = timeStamp
            };

            saleLeadRepo.Add(saleLead);

            return(saleLead);
        }