Files
hrm_eva/EF/_IBaseService2.cs

23 lines
584 B
C#

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
}
}