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