Esempio n. 1
0
 /// <summary>Method for saving task
 /// <para name = "current">Task that needs to be saved</para>
 /// </summary>
 public void SaveTask(ProjectStore.Task current)
 {
     if (current != null)
     {
         _context.Add(current);
         _context.SaveChanges();
     }
 }
Esempio n. 2
0
 /// <summary>Method for deleting a task
 /// <para name = "current">Task that needs to be deleted</para>
 /// </summary>
 public void DeleteTask(ProjectStore.Task current)
 {
     if (current != null)
     {
         _context.Remove(current);
         _context.SaveChanges();
     }
 }
Esempio n. 3
0
 /// <summary>Method for editing task
 /// <para name = "task">Task that needs to be edited</para>
 /// </summary>
 public void EditTask(ProjectStore.Task task)
 {
     _context.Update(task);
     _context.SaveChangesAsync();
 }