I wanted to pick your minds...
So I've got this View that allows for a small register... and a stored procedure.
I've been seeing these pseudo "repositories" when making calls... to me, it just seems like an extra hole that needs to be drilled in order to make the call. This bring up three qeustions:
1) what's the point of pseudo repositories?
2) what's the best place to make my stored procedure call: within the views controller function or referencing some other function?
3) how do I recieve the stored procedues result (i.e. success of failure)?
Here's my call:
long? tmp = 1234;
LinqToPartyDataContext lq = new LinqToPartyDataContext();
lq.spCreatePersonaParty(ref tmp,
model.FirstName,
null,
null,
null,
null,
null,
null,
null,
model.EmailAddress,
null,
null,
null,
null,
null,
model.ZipCode,
null,
null);
How do I get the result?