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); }
public ActionResult GetSupplementRelations(int id, string type) { var service = new RelationInformationService(); return(Content(new JavaScriptSerializer().Serialize(service.GetSupplementRelations(id, type)))); }