public void specificationMethod() { ISaleLeadRepository saleLeadRepo = new SaleLeadRepository(db); var specification = new Specification <SaleLead>(s => s.Id == 1); var company = saleLeadRepo.Find(specification); }
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); }