Compare commits
No commits in common. "702c845c1f2fee9a48a50151e8b841552953cf61" and "974d8946ee77289402d1d32dc3480f1349a4d9ec" have entirely different histories.
702c845c1f
...
974d8946ee
@ -59,7 +59,7 @@
|
|||||||
@Html.DisplayFor(modelItem => item.Date)
|
@Html.DisplayFor(modelItem => item.Date)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.TeacherName)
|
@Html.DisplayFor(modelItem => item.TeacherId)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@ namespace UniversityContracts.ViewModels
|
|||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public int UserId { get; set; }
|
public int UserId { get; set; }
|
||||||
public int TeacherId { get; set; }
|
public int TeacherId { get; set; }
|
||||||
public string TeacherName { get; set; } = string.Empty;
|
|
||||||
[DisplayName("Название ведомости")]
|
[DisplayName("Название ведомости")]
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
[DisplayName("Дата оформления ведомости")]
|
[DisplayName("Дата оформления ведомости")]
|
||||||
|
@ -21,7 +21,7 @@ namespace UniversityRestApi.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public List<StatementViewModel>? GetStatements(int teacherId, int userId)
|
public List<StatementViewModel>? GetStatements(int teacherId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -29,7 +29,7 @@ namespace UniversityRestApi.Controllers
|
|||||||
{
|
{
|
||||||
return _logic.ReadList(null);
|
return _logic.ReadList(null);
|
||||||
}
|
}
|
||||||
return _logic.ReadList(new StatementSearchModel { TeacherId = teacherId, UserId = userId });
|
return _logic.ReadList(new StatementSearchModel { TeacherId = teacherId });
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -38,6 +38,7 @@ namespace UniversityRestApi.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public void CreateStatement(StatementBindingModel model)
|
public void CreateStatement(StatementBindingModel model)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user