public Tuple<string, string, long> GetDetail(long id) { //Here you can implement all functionality of your project. And then return all value sequentially. return new Tuple<string, string, long>("StringValue1", "StringValue2", LongValue); }
You can call Tuple in your project similar to call the method of the repository.
var detail = Uow.PostRepository.GetDetail(id); var value1 = detail.Item1; var value2 = detail.Item2; var value3 = detail.Item3;
You can use all three values in your application.
I hope it's informative!!!
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Hi Franco,
First, we focus on how to create Tuple in MVC:
You can call Tuple in your project similar to call the method of the repository.
You can use all three values in your application.
I hope it's informative!!!