コード例 #1
0
 Task <TopFiveOptions> ITopFiveService.AddTopFiveAsync(TopFiveOptions topFive)
 {
     throw new System.NotImplementedException();
 }
コード例 #2
0
 public async Task <TopFiveOptions> AddTopFiveAsync(TopFiveOptions topFive)
 {
     return(await _topFiveRepository.AddTopFiveAsync(topFive));
 }
コード例 #3
0
 public async Task <IHttpActionResult> AddTopFiveAsync([FromBody] TopFiveOptions topFive)
 {
     topFive.Id = _appRequestInfo.TopFiveId;
     return(Created(string.Empty, await _topFiveService.AddTopFiveAsync(topFive)));
 }
コード例 #4
0
 Task <TopFiveOptions> ITopFiveRepository.AddTopFiveAsync(TopFiveOptions TopFive)
 {
     throw new System.NotImplementedException();
 }
コード例 #5
0
        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));
        }