コード例 #1
0
ファイル: ClientRepository.cs プロジェクト: johnhinz/Investor
 public void UpdateClient(ClientPoco client)
 {
     ClientPoco c = _db.Clients.Single(cu => cu.Id == client.Id);
     c.FirstName = client.FirstName;
     c.LastName = client.LastName;
     c.DoB = client.DoB;
     c.SocialIns = client.SocialIns;
     _db.SaveChanges();
 }
コード例 #2
0
ファイル: ClientLogic.cs プロジェクト: johnhinz/Investor
 public void UpdateClient(ClientPoco client)
 {
     _repository.UpdateClient (client);
 }
コード例 #3
0
ファイル: ClientLogic.cs プロジェクト: johnhinz/Investor
 public void Create(ClientPoco client)
 {
     _repository.Create(client);
 }
コード例 #4
0
ファイル: ClientRepository.cs プロジェクト: johnhinz/Investor
 public void Create(ClientPoco client)
 {
     _db.Clients.Add(client);
     _db.SaveChanges();
 }
コード例 #5
0
ファイル: LogicStub.cs プロジェクト: johnhinz/Investor
 public void UpdateClient(ClientPoco client)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
ファイル: LogicStub.cs プロジェクト: johnhinz/Investor
 public void Create(ClientPoco client)
 {
     throw new NotImplementedException();
 }