public async Task <IHttpActionResult> GetAll(FilterDto filter) { filter.StatusCode = 0; var result = await _wishRepository.GetWishes(filter); return(SuccessApiResult(result)); }
public async Task <IActionResult> getWishes() { var wishes = await _wishRepo.GetWishes(); if (wishes != null) { return(Ok(wishes)); } return(BadRequest("Problem with getting user wishes")); }