Click here to Skip to main content
15,902,636 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer29-Aug-15 16:35
professionalclientSurfer29-Aug-15 16:35 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
Eddy Vluggen30-Aug-15 2:16
professionalEddy Vluggen30-Aug-15 2:16 
JokeRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer30-Aug-15 6:31
professionalclientSurfer30-Aug-15 6:31 
AnswerRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
BillWoodruff28-Aug-15 18:21
professionalBillWoodruff28-Aug-15 18:21 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer29-Aug-15 16:48
professionalclientSurfer29-Aug-15 16:48 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
BillWoodruff29-Aug-15 23:29
professionalBillWoodruff29-Aug-15 23:29 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer30-Aug-15 6:48
professionalclientSurfer30-Aug-15 6:48 
Questionspeech recognition in C# Pin
Member 1178520026-Aug-15 7:28
Member 1178520026-Aug-15 7:28 
AnswerRe: speech recognition in C# Pin
Richard MacCutchan26-Aug-15 22:14
mveRichard MacCutchan26-Aug-15 22:14 
JokeRe: speech recognition in C# Pin
Pete O'Hanlon27-Aug-15 4:21
mvePete O'Hanlon27-Aug-15 4:21 
GeneralRe: speech recognition in C# Pin
Richard MacCutchan27-Aug-15 4:47
mveRichard MacCutchan27-Aug-15 4:47 
QuestionMicrosoft.Speech AppendDictation Pin
Member 1192461826-Aug-15 1:07
Member 1192461826-Aug-15 1:07 
QuestionConnect to Report server using a C# service. Pin
Member 328413825-Aug-15 21:38
Member 328413825-Aug-15 21:38 
AnswerRe: Connect to Report server using a C# service. Pin
Herman<T>.Instance25-Aug-15 21:50
Herman<T>.Instance25-Aug-15 21:50 
QuestionExec within an sqlstament for Excecutenonquery Pin
pschulz25-Aug-15 18:20
pschulz25-Aug-15 18:20 
AnswerRe: Exec within an sqlstament for Excecutenonquery Pin
Wendelius25-Aug-15 18:26
mentorWendelius25-Aug-15 18:26 
SuggestionRe: Exec within an sqlstament for Excecutenonquery Pin
Richard Deeming26-Aug-15 2:11
mveRichard Deeming26-Aug-15 2:11 
GeneralRe: Exec within an sqlstament for Excecutenonquery Pin
Wendelius26-Aug-15 2:42
mentorWendelius26-Aug-15 2:42 
AnswerRe: Exec within an sqlstament for Excecutenonquery Pin
Richard Deeming26-Aug-15 2:16
mveRichard Deeming26-Aug-15 2:16 
AnswerRe: Exec within an sqlstament for Excecutenonquery Pin
pschulz28-Aug-15 17:39
pschulz28-Aug-15 17:39 
AnswerRe: Exec within an sqlstament for Excecutenonquery Pin
ebk213-Sep-15 13:00
ebk213-Sep-15 13:00 
QuestionHow to achieve WPF window designer? Pin
Member 1193585525-Aug-15 17:51
Member 1193585525-Aug-15 17:51 
AnswerRe: How to achieve WPF window designer? Pin
Pete O'Hanlon25-Aug-15 21:05
mvePete O'Hanlon25-Aug-15 21:05 
QuestionWeb-Api in Mvc5.net Pin
Member 1190393725-Aug-15 4:51
Member 1190393725-Aug-15 4:51 
AnswerRe: Web-Api in Mvc5.net Pin
Dave Kreskowiak25-Aug-15 5:24
mveDave Kreskowiak25-Aug-15 5:24 
You seem to have some serious misconceptions about what an ApiController is compared to a normal Controller.

ApiControllers handle data only. They return data only. There is no View in a ApiController.


1) Yeah, since there is no View when using an ApiController, there is no TempData, no ViewBag and no ViewData.

2) ApiControllers don't return views, they return data.

3) A method can only return ONE type of object. What that is depends on your requirements. If you want to return data in different formats you'll have to write different methods to call to support each format type.

4) Your question doesn't make sense.

5) Again, ApiControllers have nothing to do with Views, so this question is moot.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.