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