แยกเมนู แบบข้อตกลงการปฏิบัติงานเพื่อประกอบการพิจารณาประเมินผลสัมฤทธิ์ของงาน งด.2/2 ออกมา

This commit is contained in:
Nakorn Rientrakrunchai
2021-02-10 15:54:45 +07:00
parent fe4e051f62
commit 682dc2e5ae
21 changed files with 1639 additions and 194 deletions

22
EF/_IBaseService2.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.EF
{
public interface IBaseService2<Key, InputModel, ViewModel>
{
#region Query Functions
ViewModel Get(Key id);
#endregion
#region Manipulation Functions
ViewModel Insert(InputModel model, bool is_force_save);
ViewModel Update(Key id, InputModel model, bool is_force_save);
ViewModel SetAsActive(Key id);
ViewModel SetAsInactive(Key id);
void Delete(Key id);
#endregion
}
}