เตรียม code เพื่อสอน การดึงข้อมูลผ่าน C# และส่งไปให้ report
This commit is contained in:
@@ -21,7 +21,7 @@ namespace TodoAPI2.Models
|
||||
eva_adjust_postponement_quotaWithSelectionViewModel GetWithSelection(int id);
|
||||
eva_adjust_postponement_quotaWithSelectionViewModel GetBlankItem();
|
||||
|
||||
|
||||
DataContext GetContext();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user