// Aux functions for Validation public void isDuplicateUser(string firstName, string lastName, string emailID) { var result = queryObject.GetSingle <userPoco>(user => (user.emailAddress == emailID)); if (result != null) { throw new FaultException <userAlreadyExistsExceptionDetails>( new userAlreadyExistsExceptionDetails { errorMsg = "Custom Application Exception:- User Already Exists", errorCode = 1 }, "Custom Application Exception:- User Already Exists, IsDuplicateUser() in Business logic Layer "); } }
anotherPocoTypePlaceholder iRepoQuery <iPocoType> .GetSingle <anotherPocoTypePlaceholder>(Func <anotherPocoTypePlaceholder, bool> wherePredicate, params Expression <Func <anotherPocoTypePlaceholder, object> >[] navigationPropertyPathObjectList) { return(_iRepoQueryInjection.GetSingle <anotherPocoTypePlaceholder>(wherePredicate, navigationPropertyPathObjectList)); }