public string CheckDuplicateCodeAtt(Guid? ID, string codeAtt) { // Kiểm tra có check trùng dữ liệu hay không var hre_profileservices = new Hre_ProfileServices(); Boolean ischeck = hre_profileservices.IsCheckDuplidateCodeAtt(); if (ischeck == false) { return null; } if (ID == null) { ID = Guid.Empty; } string profile = null; string status = string.Empty; var actionService = new ActionService(UserLogin); var objs = new List<object>(); objs.Add(ID); objs.Add(codeAtt); var profilename = actionService.GetData<Hre_ProfileEntity>(objs, ConstantSql.hrm_hr_sp_get_ProfileByCodeAttID, ref status).FirstOrDefault(); if (profilename != null) { profile = profilename.ProfileName; } return profile; }