コード例 #1
0
 public bool Add(Bill bill)
 {
     try
     {
         context.Bill.Add(bill);
         context.SaveChanges();
     }
     catch (Exception exception)
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 public bool Register(Users user)
 {
     try
     {
         context.Users.Add(user);
         context.SaveChanges();
     }
     catch (Exception exception)
     {
         return(false);
     }
     return(true);
 }
コード例 #3
0
 public bool AddInformation(Information information)
 {
     try
     {
         context.Information.Add(information);
         context.SaveChanges();
     }
     catch (Exception exception)
     {
         return(false);
     }
     return(true);
 }