Шукаєте відповіді та рішення тестів для Practical C#/.Net? Перегляньте нашу велику колекцію перевірених відповідей для Practical C#/.Net в softserve.academy.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Please, select query string formats that are correct for the action :
public IActionResult OnPost(int? teacherId, int[] selectedStudents)
Please, set a validation attribute for Age property so that correct values will be from 17 to 50 inclusive
class Student
{
public string Name { get; set; }
public int Age { get; set; }
public DateTime EnterDate { get; set; }
}
What model validation attribute should be used to implement client-side validation that requires calling a method on the server to determine whether field input is valid?
What will be the result of the action
public class HomeController : Controller
{
public IActionResult Login(int x, int y)
{
return Content($"{x * y}");
}
}
with https://localhost:xxxxx/home/login/ request?Please, choose the name ot the mechanism that performs:
What will be the output as a result of sending request to hostname:[port]/home?
Startup.cs Configure method:What will be the output of this code with Request "http://hostname:65087/Home/Index"?
Please, choose what is true about attribute-based routing:
Please, define the url that corresponds to the action defined below:
[Area("admin")]
[Route(“[controller]/[action]")]
public class MenuController : Controller
{
[Route("~/stats")]
public ActionResult Stats()
{ ... }
}
URL: https://localhost:xxxx/
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!