コード例 #1
0
        public async Task <IHttpActionResult> GetAll(FilterDto filter)
        {
            filter.StatusCode = 0;
            var result = await _wishRepository.GetWishes(filter);

            return(SuccessApiResult(result));
        }
コード例 #2
0
        public async Task <IActionResult> getWishes()
        {
            var wishes = await _wishRepo.GetWishes();

            if (wishes != null)
            {
                return(Ok(wishes));
            }
            return(BadRequest("Problem with getting user wishes"));
        }