public IEnumerable <Shop> BySubCategory(string subcategory) { try { var shops = _shopService.BySubCategory(subcategory); return(shops); } catch (Exception ex) { _logger.Error <ShopController>(ex, "Error Occured while getting shops by sub category."); throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message)); } }