Песня, которой не спеть,
спит на губах моих грустно. Где-то в саду захолустном первый светляк золотится, в речке луна струится, как золотая сеть. И песня тогда мне снится, которую мне не спеть. Песня задумчивых губ и затуманенной влаги, Песня забытых минут, что затерялись во мраке. Песня звезды кочевой над незакатной зарей.
This commit is contained in:
parent
ab82833487
commit
7ea4b12dad
@ -297,86 +297,5 @@ namespace WorkerWebApp.Controllers
|
||||
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None,
|
||||
NoStore = true)]
|
||||
public IActionResult Error()
|
||||
{
|
||||
return View(new ErrorViewModel
|
||||
{
|
||||
RequestId =
|
||||
Activity.Current?.Id ?? HttpContext.TraceIdentifier
|
||||
});
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult Enter() //че бомбишь
|
||||
{
|
||||
return View();
|
||||
}
|
||||
[HttpPost]
|
||||
public void Enter(string login, string password)
|
||||
{
|
||||
if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(password))
|
||||
{
|
||||
throw new Exception("Введите логин и пароль");
|
||||
}
|
||||
APIWorker.Worker = APIWorker.GetRequest<WorkerViewModel>($"api/workercontroller/login?login={login}&password={password}");
|
||||
if (APIWorker.Worker == null)
|
||||
{
|
||||
throw new Exception("Неверный логин/пароль");
|
||||
}
|
||||
Response.Redirect("Index");
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult Register()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
[HttpPost]
|
||||
public void Register(string login, string password, string fio)
|
||||
{
|
||||
if (string.IsNullOrEmpty(login) ||
|
||||
string.IsNullOrEmpty(password) || string.IsNullOrEmpty(fio))
|
||||
{
|
||||
throw new Exception("Введите логин, пароль и ФИО");
|
||||
}
|
||||
APIWorker.PostRequest("api/worker/register", new
|
||||
WorkerBindingModel
|
||||
{
|
||||
FullName = fio,
|
||||
Email = login,
|
||||
Password = password
|
||||
});
|
||||
Response.Redirect("Enter");
|
||||
return;
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult Orders()
|
||||
{
|
||||
return View(new List<OrderViewModel>());
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult Procedures()
|
||||
{
|
||||
return View(new List<ProcedureViewModel>());
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult Evaluations()
|
||||
{
|
||||
return View(new List<EvaluationViewModel>());
|
||||
}
|
||||
[HttpGet]
|
||||
public IActionResult Report()
|
||||
{
|
||||
return View(new List<ProcedureViewModel>()); //вот тут вопрос
|
||||
}
|
||||
public IActionResult OrderList()
|
||||
{
|
||||
return View(new List<OrderViewModel>()); //тут тоже вопрос
|
||||
}
|
||||
}*/
|
||||
}
|
@ -41,7 +41,7 @@
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Evaluation" asp-action="Evaluations">Оценки</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Report">Отчет</a>
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Reports">Отчет</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user