/// <summary>
 /// [Kiet.Chung] - Lấy dữ liệu WorkPlace(Cat_SelfDefenceMilitiaPosition) theo Id
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Cat_SelfDefenceMilitiaPositionModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Cat_SelfDefenceMilitiaPositionModel();
     ActionService service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Cat_SelfDefenceMilitiaPositionEntity>(id, ConstantSql.hrm_cat_sp_get_SelfDefenceMilitiaPositionById, ref status);
     if (entity != null)
     {
         model = entity.CopyData<Cat_SelfDefenceMilitiaPositionModel>();
     }
     model.ActionStatus = status;
     return model;
 }
 public Cat_SelfDefenceMilitiaPositionModel Post([Bind]Cat_SelfDefenceMilitiaPositionModel model)
 {
     #region Validate
     string message = string.Empty;
     var checkValidate = HRM.Business.Main.Domain.ValidatorService.OnValidateData<Cat_SelfDefenceMilitiaPositionModel>(model, "Cat_SelfDefenceMilitiaPosition", ref message);
     if (!checkValidate)
     {
         model.ActionStatus = message;
         return model;
     }
     #endregion
     ActionService service = new ActionService(UserLogin);
     return service.UpdateOrCreate<Cat_SelfDefenceMilitiaPositionEntity, Cat_SelfDefenceMilitiaPositionModel>(model);
 }