public void Add(Person entity) { _unit.PersonsRepository.Add(entity); _unit.Submit(); }
public void Post([FromBody] House value) { _unit.HousesRepository.Add(value); _unit.Submit(); }
public void Add(House entity) { _unit.HousesRepository.Add(entity); _unit.Submit(); }
public void Post([FromBody] Person value) { _unit.PersonsRepository.Add(value); _unit.Submit(); }
public void Post([FromBody] Service value) { _unit.ServicesRepository.Add(value); _unit.Submit(); }
public void Post([FromBody] Provider value) { _unit.ProvidersRepository.Add(value); _unit.Submit(); }
public void Post([FromBody] Payment value) { _unit.PaymentsRepository.Add(value); _unit.Submit(); }
public void Post([FromBody] Address value) { value.AddressId = _unit.AddressesRepository.Count() + 1; _unit.AddressesRepository.Add(value); _unit.Submit(); }
public void Post([FromBody] Contact value) { _unit.ContactsRepository.Add(value); _unit.Submit(); }