เตรียม code เพื่อสอน การดึงข้อมูลผ่าน C# และส่งไปให้ report

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-07-15 14:31:49 +07:00
parent 9aa338ff18
commit 6f06b1e544
3 changed files with 31 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ namespace TodoAPI2.Models
eva_adjust_postponement_quotaWithSelectionViewModel GetWithSelection(int id);
eva_adjust_postponement_quotaWithSelectionViewModel GetBlankItem();
DataContext GetContext();
}
}

View File

@@ -59,6 +59,11 @@ namespace TodoAPI2.Models
#region Public Functions
#region Query Functions
public DataContext GetContext()
{
return _repository.Context;
}
public eva_adjust_postponement_quotaViewModel Get(int id)
{
var entity = _repository.Get(id);