public List <CountryRevenue_Result> GetCountryRevenue(string Country, DateTime FromDate, DateTime ToDate) { var northwind = new NorthwindEntities(); var result = northwind.CountryRevenue(Country, FromDate.ToString("yyyyMMdd"), ToDate.ToString("yyyyMMdd")); return(result.ToList()); }