public ActionResult Candidate(Guid id, Guid jobid) { CandidateViewModel profile = new CandidateViewModel(); profile.Basic = db.Profile_Basic.FirstOrDefault(x => x.ProfileBasicId == id); profile.Education = db.Profile_Education.Where(x => x.UserId == profile.Basic.UserId); profile.Experience = db.Profile_Work.Where(x => x.UserId == profile.Basic.UserId); // Matching profile with job MatchingTool tool = new MatchingTool(); tool.Match(id, jobid); int matchPercent = 0; if (tool.RequirePoint != 0) { matchPercent = Convert.ToInt32(tool.MatchingPoint / tool.RequirePoint * 100); } profile.MatchPercent = matchPercent; profile.MatchResult = tool.Results; return View(profile); }
static void Main(string[] args) { Profile_Basic basic = new Profile_Basic { FirstName = "Phúc", LastName = "Lê Dương Công", Gender = "Nam", Birthdate = DateTime.Now, MaritalStatus = "Single", AddressLine1 = "123 Trần Hưng Đạo", AddressLine2 = "93 Cao Thắng", Country = "Vietnam", City = "848" }; //TagAttributeMappingManager test = new TagAttributeMappingManager(); //test.AddAttributeObject(basic, basic.ProfileBasicId, "Profile", Guid.Empty); //Hierarchy hierarchy = new Hierarchy(); //Tag tag = hierarchy.GetHierarchicalTreeByObject(new Guid("B121BDDF-7A43-4DE4-9048-7FF1C90EAD9B"), "JobSeekerProfile"); MatchingTool tool = new MatchingTool(); tool.Match(new Guid("00b23921-5705-49aa-ad68-97916a76e798"), new Guid("fb71e350-a2d2-438d-a87d-822c42866213")); }