示例#1
0
 public bool AddCompanyRelatioship(JoinCompanyStockExchange join_cse)
 {
     try
     {
         context.JoinCompanyStockExchange.Add(join_cse);
         int updates = context.SaveChanges();
         if (updates > 0)
         {
             return(true);
         }
         return(false);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public bool Delete(JoinCompanyStockExchange jcse)
 {
     return(repository.Delete(jcse));
 }
 public bool Add(JoinCompanyStockExchange joinCompanyStockExchange)
 {
     return(repository.Add(joinCompanyStockExchange));
 }
示例#4
0
 public bool AddRelationshipWithCompany(JoinCompanyStockExchange join_cse)
 {
     return(repository.AddCompanyRelatioship(join_cse));
 }