public Rec_CandidateLanguageLevelModel GetById(Guid id)
        {
            string        status  = string.Empty;
            var           model   = new Rec_CandidateLanguageLevelModel();
            ActionService service = new ActionService(UserLogin);
            var           entity  = service.GetByIdUseStore <Rec_CandidateLanguageLevelEntity>(id, ConstantSql.hrm_rec_sp_get_Rec_CandidateLanguageLevelById, ref status);//note

            if (entity != null)
            {
                model = entity.CopyData <Rec_CandidateLanguageLevelModel>();
            }
            model.ActionStatus = status;
            return(model);
        }
        public Rec_CandidateLanguageLevelModel Post([Bind] Rec_CandidateLanguageLevelModel model)
        {
            #region Validate
            string message       = string.Empty;
            var    checkValidate = HRM.Business.Main.Domain.ValidatorService.OnValidateData <Rec_CandidateLanguageLevelModel>(model, "Rec_CandidateLanguageLevel", ref message);
            if (!checkValidate)
            {
                model.ActionStatus = message;
                return(model);
            }
            #endregion

            ActionService service = new ActionService(UserLogin);
            return(service.UpdateOrCreate <Rec_CandidateLanguageLevelEntity, Rec_CandidateLanguageLevelModel>(model));
        }