示例#1
0
 /// <summary>
 /// Method that will Update the StepTag passed in the parameters to the database
 /// </summary>
 /// <param name="routeTag">Object StepTag to Update</param>
 public void Update(StepTag stepTag)
 {
     _context.Steptags.Update(stepTag);
     _context.SaveChanges();
 }
示例#2
0
 /// <summary>
 /// Method to Add the stepTag passed in the parameters to the database
 /// </summary>
 /// <param name="stepTag">Object stepTag to Add</param>
 public void Add(StepTag stepTag)
 {
     _context.Steptags.Add(stepTag);
     _context.SaveChanges();
 }