Готовая лаб5
This commit is contained in:
parent
529c82b892
commit
427350b7cf
@ -34,7 +34,7 @@ namespace PlumbingRepairClientApp
|
||||
var data = new StringContent(json, Encoding.UTF8, "application/json");
|
||||
|
||||
var response = _client.PostAsync(requestUrl, data);
|
||||
|
||||
|
||||
var result = response.Result.Content.ReadAsStringAsync().Result;
|
||||
if (!response.Result.IsSuccessStatusCode)
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ namespace PlumbingRepairClientApp.Controllers
|
||||
{
|
||||
throw new Exception("Количество и сумма должны быть больше 0");
|
||||
}
|
||||
APIClient.PostRequest("api/main/createorder", new OrderBindingModel
|
||||
APIClient.PostRequest("api/main/createorder", new OrderBindingModel
|
||||
{
|
||||
ClientId = APIClient.Client.Id,
|
||||
WorkId = work,
|
||||
|
@ -6,7 +6,7 @@
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<div class="col-4">Изделие:</div>
|
||||
<div class="col-4">Работа:</div>
|
||||
<div class="col-8">
|
||||
<select id="work" name="work" class="form-control" asp-items="@(new SelectList(@ViewBag.Works,"Id", "WorkName"))"></select>
|
||||
</div>
|
||||
|
@ -73,8 +73,9 @@ namespace PlumbingRepairDataBaseImplement.Models
|
||||
{
|
||||
Id = Id,
|
||||
WorkId = WorkId,
|
||||
WorkName = WorkName,
|
||||
WorkName = Work.WorkName,
|
||||
ClientId = ClientId,
|
||||
ClientFIO = Client.ClientFIO,
|
||||
Count = Count,
|
||||
Sum = Sum,
|
||||
Status = Status,
|
||||
|
Loading…
Reference in New Issue
Block a user