Task <TopFiveOptions> ITopFiveService.AddTopFiveAsync(TopFiveOptions topFive) { throw new System.NotImplementedException(); }
public async Task <TopFiveOptions> AddTopFiveAsync(TopFiveOptions topFive) { return(await _topFiveRepository.AddTopFiveAsync(topFive)); }
public async Task <IHttpActionResult> AddTopFiveAsync([FromBody] TopFiveOptions topFive) { topFive.Id = _appRequestInfo.TopFiveId; return(Created(string.Empty, await _topFiveService.AddTopFiveAsync(topFive))); }
Task <TopFiveOptions> ITopFiveRepository.AddTopFiveAsync(TopFiveOptions TopFive) { throw new System.NotImplementedException(); }
public async Task <IHttpActionResult> SaveTopFive(TopFiveOptions topFive) { var isOk = await _topFiveService.SaveTopFive(topFive.UserId, topFive.RestaurantOne, topFive.RestaurantTwo, topFive.RestaurantThree, topFive.RestaurantFour, topFive.RestaurantFive); return(Ok(isOk)); }