Пример #1
0
        /// <summary>
        /// подробно о колоде
        /// </summary>
        /// <param name="id">ид колоды</param>
        /// <returns></returns>
        public async Task <ActionResult> Details(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var deck = await service.GetDeckDetailById((long)id);

            if (deck == null)
            {
                return(HttpNotFound());
            }
            return(View(deck));
        }
Пример #2
0
 public async Task <DeckDetailResponse> Details(long id)
 {
     return(await _deckService.GetDeckDetailById(id));
 }