/// <summary>
 /// Updates changes to database
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public async Task UpdateAsync(T entity)
 {
     try
     {
         _context.Entry(entity).State = EntityState.Modified;
         await _context.SaveChangesAsync();
     }
     catch (DbUpdateException)
     {
     }
 }