예제 #1
0
 public void Add(Person entity)
 {
     _unit.PersonsRepository.Add(entity);
     _unit.Submit();
 }
 public void Post([FromBody] House value)
 {
     _unit.HousesRepository.Add(value);
     _unit.Submit();
 }
예제 #3
0
 public void Add(House entity)
 {
     _unit.HousesRepository.Add(entity);
     _unit.Submit();
 }
예제 #4
0
 public void Post([FromBody] Person value)
 {
     _unit.PersonsRepository.Add(value);
     _unit.Submit();
 }
예제 #5
0
 public void Post([FromBody] Service value)
 {
     _unit.ServicesRepository.Add(value);
     _unit.Submit();
 }
 public void Post([FromBody] Provider value)
 {
     _unit.ProvidersRepository.Add(value);
     _unit.Submit();
 }
예제 #7
0
 public void Post([FromBody] Payment value)
 {
     _unit.PaymentsRepository.Add(value);
     _unit.Submit();
 }
예제 #8
0
 public void Post([FromBody] Address value)
 {
     value.AddressId = _unit.AddressesRepository.Count() + 1;
     _unit.AddressesRepository.Add(value);
     _unit.Submit();
 }
예제 #9
0
 public void Post([FromBody] Contact value)
 {
     _unit.ContactsRepository.Add(value);
     _unit.Submit();
 }