First Initial

This commit is contained in:
Nakorn Rientrakrunchai
2020-02-20 15:02:39 +07:00
commit 8b98125e49
3048 changed files with 760804 additions and 0 deletions

22
EF/_IBaseService.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 IBaseService<Key, InputModel, ViewModel>
{
#region Query Functions
ViewModel Get(Key id);
#endregion
#region Manipulation Functions
ViewModel Insert(InputModel model);
ViewModel Update(Key id, InputModel model);
ViewModel SetAsActive(Key id);
ViewModel SetAsInactive(Key id);
void Delete(Key id);
#endregion
}
}