// Validate Inputs and other business rules public void addUser(string first, string last, string emailID) { // Validate If email Address is blank validateEmailAddress(emailID); // Validate If user Exists isDuplicateUser(first, last, emailID); //Bug dBcontext is a singelton and is getting disposed //using (commandObject) { // Add user commandObject.add <userPoco>(new userPoco { ecifID = Guid.NewGuid(), firstName = first, lastName = last, emailAddress = emailID }); } }
void iRepoCommand <iPocoType> .add <anotherPocoTypePlaceholder>(params anotherPocoTypePlaceholder[] pocosToBeAdded) { Console.WriteLine("Cached Repo"); _iRepoCommandInjection.add <anotherPocoTypePlaceholder>(pocosToBeAdded); }