Example #1
0
        public object Post()
        {
            var packages = DoActionForGet <List <string> >(string.Empty, Constant.PackageUrl);

            if (packages.Any())
            {
                _packageService.AddPackages(packages);
            }
            return(GetDataWithMessage(() => new Tuple <object, string, bool>(_packageService.GetAll(), "Record imported successfully", true)));
        }