Brewage.Web.Models.RecipeService.GetRecentRecipes C# (CSharp) Method

GetRecentRecipes() public method

public GetRecentRecipes ( int maxcount ) : IList
maxcount int
return IList
        public IList<Contracts.Entities.Recipe> GetRecentRecipes(int maxcount)
        {
            //TODO: call actual WCF service and make call
            using (System.ServiceModel.ChannelFactory<IRecipeService> factory = new System.ServiceModel.ChannelFactory<IRecipeService>("RecipeServiceHTTP"))
            {
                IRecipeService service = factory.CreateChannel();
                return service.GetRecentRecipes(maxcount);
            }
        }
RecipeService