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();
}