AspNet5SearchWithElasticsearchCrud.Search.ElasticSearchProvider.UpdateSkill C# (CSharp) 메소드

UpdateSkill() 공개 메소드

public UpdateSkill ( long updateId, string updateName, string updateDescription ) : void
updateId long
updateName string
updateDescription string
리턴 void
        public void UpdateSkill(long updateId, string updateName, string updateDescription)
        {
            var skill = _context.GetDocument<Skill>(updateId);
            skill.Updated = DateTime.UtcNow;
            skill.Name = updateName;
            skill.Description = updateDescription;
            _context.AddUpdateDocument(skill, skill.Id);
            _context.SaveChanges();
        }