예제 #1
0
 /// <summary>
 /// Updates a dealer.
 /// </summary>
 /// <param name="dealerId"></param>
 /// <param name="dealer"></param>
 /// <returns></returns>
 public async Task <Dealer> UpdateDealerAsync(Guid dealerId, Dealer dealer)
 {
     return(await PostAsync <Dealer>($"{Urls.Admin}/dealer/{dealerId}", dealer));
 }
예제 #2
0
 /// <summary>
 /// Updates a dealer.
 /// </summary>
 /// <param name="dealerId"></param>
 /// <param name="dealer"></param>
 /// <returns></returns>
 public Dealer UpdateDealer(Guid dealerId, Dealer dealer)
 {
     return(Post <Dealer>($"{Urls.Admin}/dealer/{dealerId}", dealer));
 }