using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; using System.Web.Mvc; using Weee.Models; using Weee.Models.Paramemter; using Weee.Service; namespace Weee.WCFService { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "WCFParameterService" in code, svc and config file together. // NOTE: In order to launch WCF Test Client for testing this service, please select WCFParameterService.svc or WCFParameterService.svc.cs at the Solution Explorer and start debugging. public class WCFParameterService : IWCFParameterService { private readonly WeeeParameterDataService service; public WCFParameterService() { service = DependencyResolver.Current.GetService(); service.DisableProxyAndLazyLoad(); } public NonYearlyParameter GetNonYearlyParameter(int nonYearlyParameterId) { return service.GetNonYearlyParameter(nonYearlyParameterId); } public Dictionary GetNonYearlyParameterOptions(Categories categories) { return service.GetNonYearlyParameterOptions(categories); } public Dictionary GetParameterValues(IEnumerable ids) { return service.GetParameterValues(ids); } public IEnumerable GetPublicPCRs() { return service.GetPublicPCRs(); } public Dictionary GetSimaproCategories() { return service.GetSimaproCategories(); } public Dictionary GetSimaproEncodingsAndValues(List ids) { return service.GetSimaproEncodingsAndValues(ids); } public SimaproParameter GetSimaproParameter(int simaproParameterId) { return service.GetSimaproParameter(simaproParameterId); } public Dictionary GetSimaproTypeNames(List ids) { return service.GetSimaproTypeNames(ids); } public IEnumerable GetSimaproTypeParameter(int categoryId) { return service.GetSimaproTypeParameter(categoryId); } public List GetSimaproUnits() { return service.GetSimaproUnits(); } public IEnumerable GetSimaproVersionCategory() { return service.GetSimaproVersionCategory(); } public Dictionary GetYearlyParameterOptions(Categories categories) { return service.GetYearlyParameterOptions(categories); } } }