Пример #1
0
		public async Task UpdateRenterAsync(Renter renter)
		{
			await _renterRepository.UpdateRenterAsync(renter);
		}
Пример #2
0
		public async Task DeleteRenterAsync(Renter renter)
		{
			await _renterRepository.DeleteRenterAsync(renter);
		}
		// DELETE: api/Renter/5
		public async Task Delete(Renter renter)
		{
			await _renterService.DeleteRenterAsync(renter);
		}
Пример #4
0
		public async Task<int> AddRenterAsync(Renter renter)
		{
			return await _renterRepository.AddRenterAsync(renter);
		}
		public async Task<int> Post(Renter renter)
		{
			return await _renterService.AddRenterAsync(renter);
		}
		// PUT: api/Renter/5
		public async Task Put(Renter renter)
		{
			await _renterService.UpdateRenterAsync(renter);
		}
		public async Task DeleteRenterAsync(Renter theRenter)
		{
			await ConnectionAsync.DeleteAsync(theRenter.ToDTO());
		}
		public async Task<int> AddRenterAsync(Renter theRenter)
		{
			return await ConnectionAsync.InsertAsync(theRenter.ToDTO());
		}
		public void DeleteRenter(Renter theRenter)
		{
			Connection.Delete<RenterDTO>(theRenter.Id);
		}
		public void UpdateRenter(Renter theRenter)
		{
			Connection.Update(theRenter.ToDTO());
		}
		public int AddRenter(Renter theRenter)
		{
			return Connection.Insert(theRenter.ToDTO());
		}