public static string AddPurchase(Purchase entity) { try { _db.AddManyToMany(entity); return("Ok"); } catch (Exception e) { throw; } }