Click here to Skip to main content
15,436,489 members
Home / Discussions / C#
   

C#

 
GeneralRe: [Solved] Re: It doesn't seem like resizable forms are inheritable Pin
RobertSF12-Feb-22 8:59
professionalRobertSF12-Feb-22 8:59 
GeneralRe: [Solved] Re: It doesn't seem like resizable forms are inheritable Pin
OriginalGriff12-Feb-22 9:12
mveOriginalGriff12-Feb-22 9:12 
QuestionHow to convert sample code (available in java, PHP and python) to C# for creating a bot using mediawiki API? Pin
Pallavi H Shinde9-Feb-22 5:57
MemberPallavi H Shinde9-Feb-22 5:57 
AnswerRe: How to convert sample code (available in java, PHP and python) to C# for creating a bot using mediawiki API? Pin
Eddy Vluggen9-Feb-22 6:01
professionalEddy Vluggen9-Feb-22 6:01 
GeneralRe: How to convert sample code (available in java, PHP and python) to C# for creating a bot using mediawiki API? Pin
Pallavi H Shinde9-Feb-22 7:09
MemberPallavi H Shinde9-Feb-22 7:09 
GeneralRe: How to convert sample code (available in java, PHP and python) to C# for creating a bot using mediawiki API? Pin
Eddy Vluggen9-Feb-22 8:03
professionalEddy Vluggen9-Feb-22 8:03 
AnswerRe: How to convert sample code (available in java, PHP and python) to C# for creating a bot using mediawiki API? Pin
Richard Deeming9-Feb-22 23:09
mveRichard Deeming9-Feb-22 23:09 
QuestionAsp.Net Core. Sending requests with Postman Pin
Kamil Kluska5-Feb-22 22:08
MemberKamil Kluska5-Feb-22 22:08 
I write in Postman this URL for Get method: https://localhost:7033/api/restaurant and I get 404 not found result. I don't know where is the problem. For https://localhostlocalhost:7033 it works, so it must be something wrong with [Route("api/restaurant")]

Here is the Controller code:

[Route("api/restaurant")]
public class RestaurantController : ControllerBase
{
private readonly RestaurantDbContext _dbContext;

public RestaurantController(RestaurantDbContext dbContext)
{
_dbContext = dbContext;
}

[HttpGet]
public ActionResult<ienumerable<restaurant>> GetAll()
{
var restaurants = _dbContext.Restaurants.ToList();

return Ok(restaurants);
}
}

and launchSettings file code:

}
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:8196",
"sslPort": 44311
}
},
"profiles": {
"RestaurantApp": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7033;http://localhost:5033",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

modified 6-Feb-22 6:56am.

AnswerRe: Asp.Net Core. Sending requests with Postman Pin
Tony Hill6-Feb-22 1:38
mveTony Hill6-Feb-22 1:38 
QuestionExtend Intellisense Pin
101100102-Feb-22 12:28
Member101100102-Feb-22 12:28 
AnswerRe: Extend Intellisense Pin
Dave Kreskowiak2-Feb-22 13:16
mveDave Kreskowiak2-Feb-22 13:16 
AnswerRe: Extend Intellisense Pin
OriginalGriff2-Feb-22 21:52
mveOriginalGriff2-Feb-22 21:52 
AnswerRe: Extend Intellisense Pin
Gerry Schmitz3-Feb-22 5:48
mveGerry Schmitz3-Feb-22 5:48 
QuestionHi Pin
Dijana Deleva31-Jan-22 9:56
MemberDijana Deleva31-Jan-22 9:56 
AnswerRe: Hi Pin
Richard MacCutchan31-Jan-22 10:06
mveRichard MacCutchan31-Jan-22 10:06 
AnswerRe: Hi Pin
OriginalGriff31-Jan-22 11:10
mveOriginalGriff31-Jan-22 11:10 
QuestionEF Core - Auto apply migrations with different SQL user Pin
Germghost31-Jan-22 1:33
MemberGermghost31-Jan-22 1:33 
AnswerRe: EF Core - Auto apply migrations with different SQL user Pin
Victor Nijegorodov31-Jan-22 1:54
MemberVictor Nijegorodov31-Jan-22 1:54 
AnswerRe: EF Core - Auto apply migrations with different SQL user Pin
Richard Deeming31-Jan-22 1:54
mveRichard Deeming31-Jan-22 1:54 
QuestionRe: EF Core - Auto apply migrations with different SQL user Pin
Germghost31-Jan-22 2:17
MemberGermghost31-Jan-22 2:17 
AnswerRe: EF Core - Auto apply migrations with different SQL user Pin
Germghost31-Jan-22 3:02
MemberGermghost31-Jan-22 3:02 
QuestionFill multiple comboboxes with identical information Pin
Richard A Knox27-Jan-22 2:32
MemberRichard A Knox27-Jan-22 2:32 
AnswerRe: Fill multiple comboboxes with identical information Pin
OriginalGriff27-Jan-22 4:01
mveOriginalGriff27-Jan-22 4:01 
AnswerRe: Fill multiple comboboxes with identical information Pin
RobertSF27-Jan-22 6:40
professionalRobertSF27-Jan-22 6:40 
AnswerRe: Fill multiple comboboxes with identical information Pin
Gerry Schmitz27-Jan-22 6:56
mveGerry Schmitz27-Jan-22 6:56 

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.