public Cat_DataGroupDetailModel Post([Bind] Cat_DataGroupDetailModel model)
 {
     #region Validate
     string message       = string.Empty;
     var    checkValidate = HRM.Business.Main.Domain.ValidatorService.OnValidateData <Cat_DataGroupDetailModel>(model, "Cat_DataGroupDetailinfo", "Cat_DataGroupDetail", ref message);
     if (!checkValidate)
     {
         model.ActionStatus = message;
         return(model);
     }
     #endregion
     ActionService service = new ActionService(UserLogin);
     return(service.UpdateOrCreate <Cat_DataGroupDetailEntity, Cat_DataGroupDetailModel>(model));
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Cat_DataGroupDetailModel GetById(Guid id)
        {
            string status  = string.Empty;
            var    model   = new Cat_DataGroupDetailModel();
            var    service = new ActionService(UserLogin);
            var    entity  = service.GetByIdUseStore <Cat_DataGroupDetailEntity>(id, ConstantSql.hrm_cat_sp_get_DataGroupDetailByIds, ref status);

            if (entity != null)
            {
                model = entity.CopyData <Cat_DataGroupDetailModel>();
            }
            model.ActionStatus = status;
            return(model);
        }