Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var fileService          = new FileService();
            var supplementsRelations = fileService.GetRelationInformation().ToList();
            //var supplements = fileService.GetSupplements();
            //var supService = new SupplementService();
            //supService.SetSupplements(supplements);

            var relService = new RelationInformationService();

            relService.SetSupplementsRelationInformation(supplementsRelations);
        }
Ejemplo n.º 2
0
        public ActionResult GetSupplementRelations(int id, string type)
        {
            var service = new RelationInformationService();

            return(Content(new JavaScriptSerializer().Serialize(service.GetSupplementRelations(id, type))));
        }