61 references to Content
BasicWebSite (24)
Controllers\ActionConstraints\ConsumesAttribute_PassThroughController.cs (3)
15
return
Content
("ConsumesAttribute_PassThrough_Product_Json");
21
return
Content
("ConsumesAttribute_PassThrough_Product_Json");
27
return
Content
("ConsumesAttribute_PassThrough_Product_Xml");
Controllers\ActionConstraints\ConsumesAttribute_WithFallbackActionController.cs (3)
15
return
Content
("CreateProduct_Product_Json");
22
return
Content
("CreateProduct_Product_Xml");
27
return
Content
("CreateProduct_Product_Text");
Controllers\AsyncActionsController.cs (7)
20
context.Result =
Content
($"Action exception message: {context.Exception.Message}");
67
return
Content
(message);
79
return
Content
(message);
100
return new ValueTask<IActionResult>(
Content
(message));
110
return new ValueTask<ContentResult>(
Content
(message));
142
return new CustomAwaitable<IActionResult>(SimulateDelayMilliseconds,
Content
(message));
152
return new CustomAwaitable<ContentResult>(SimulateDelayMilliseconds,
Content
(message));
Controllers\BindPropertiesSupportsGetController.cs (1)
13
public IActionResult Action() =>
Content
(Name);
Controllers\FiltersController.cs (2)
19
public IActionResult ServiceFilterTest() =>
Content
("Service filter content");
28
return
Content
($"CurrentCulture:{CultureInfo.CurrentCulture.Name},CurrentUICulture:{CultureInfo.CurrentUICulture.Name}");
Controllers\HomeController.cs (1)
113
return
Content
("Get Product");
Controllers\MonitorController.cs (1)
21
return
Content
(_counterService.CallCount.ToString(CultureInfo.InvariantCulture));
Controllers\TempDataController.cs (2)
27
return
Content
(value);
45
return
Content
(peekValue.ToString());
Controllers\TestingController.cs (3)
46
return
Content
("No header present");
72
return
Content
("true");
76
return
Content
("false");
Controllers\UsersController.cs (1)
12
return
Content
("Users.Index");
ControllersFromServicesClassLibrary (2)
EmployeeRecords.cs (2)
13
return
Content
("Updated record " + recordId);
20
return
Content
("Saved record employee #" + id);
FormatterWebSite (9)
Controllers\HomeController.cs (1)
16
return
Content
(dummyObject.SampleInt.ToString(CultureInfo.InvariantCulture));
Controllers\InputFormatterController.cs (1)
17
return
Content
(test);
Controllers\JsonFormatterController.cs (3)
56
return
Content
(dummyObject.SampleInt.ToString(CultureInfo.InvariantCulture));
68
return
Content
(dummyObject?.SampleInt.ToString(CultureInfo.InvariantCulture));
79
return
Content
(value.ToString(CultureInfo.InvariantCulture));
Controllers\SerializableErrorController.cs (1)
18
return
Content
("Hello World!");
Controllers\TopLevelValidationController.cs (1)
39
return
Content
($@"
Controllers\ValidationController.cs (2)
16
return
Content
(ModelState["Id"].Errors[0].ErrorMessage + "," +
22
return
Content
("User has been registered : " + user.Name);
GenericHostWebSite (3)
Controllers\TestingController.cs (3)
45
return
Content
("No header present");
58
return
Content
("true");
62
return
Content
("false");
Microsoft.AspNetCore.Mvc.Core.Test (2)
ControllerBaseTest.cs (2)
2186
var actualContentResult = controller.
Content
("TestContent");
3296
return
Content
("Hello!!");
Mvc.RoutingWebSite (8)
Areas\Admin\DynamicController.cs (2)
13
return
Content
("Hello from dynamic controller: " + Url.Action());
19
return
Content
("Hello from dynamic controller POST: " + Url.Action());
Areas\Admin\FallbackController.cs (2)
13
return
Content
("Hello from fallback controller: " + Url.Action());
19
return
Content
("Hello from fallback controller POST: " + Url.Action());
Controllers\ConsumesAttributeController.cs (1)
15
return
Content
($"Received json \"{json}\"");
Controllers\DebugController.cs (1)
26
return
Content
(sw.ToString());
Controllers\PageParameterController.cs (2)
14
return
Content
($"page={page}");
20
return
Content
(Url.Action(nameof(PageParameter), new { page = "17", }));
SecurityWebSite (11)
Controllers\AdministrationController.cs (4)
18
return
Content
("Administration.Index");
26
return
Content
("Administration.EitherCookie:AuthorizeCount=" + countEvaluator.AuthorizeCount);
32
return
Content
("Administration.AllowAnonymousAction");
39
return
Content
("SignInCookie2");
Controllers\AntiforgeryController.cs (1)
15
return
Content
("Ok");
Controllers\HomeController.cs (4)
21
return
Content
("Automaticaly doesn't matter");
28
return
Content
("Doesn't matter");
33
return
Content
("Login!");
38
return
Content
("Logout!");
Controllers\IgnoreAntiforgeryController.cs (1)
15
return
Content
("Ok");
Controllers\LoginController.cs (1)
42
return
Content
(BearerAuth.GetTokenText(identity.Claims));
XmlFormattersWebSite (2)
Controllers\HomeController.cs (1)
23
return
Content
(dummyObject.SampleInt.ToString(CultureInfo.InvariantCulture));
Controllers\SerializableErrorController.cs (1)
45
return
Content
("Hello World!");