Esempio n. 1
0
        public string UpdateSiteImage(string reference, long id)
        {
            var log  = new SysLogModel();
            var json = reference.ToLower() == "items"
                ? BinaryUtilities.UpdateSiteImage(new SiteModel(id))
                : new ResponseCollection().ToJson();

            log.Finish(0);
            return(json);
        }
Esempio n. 2
0
        public string UpdateSiteImage(IContext context, string reference, long id, IHttpPostedFile[] file)
        {
            var log  = new SysLogModel(context: context);
            var json = reference.ToLower() == "items"
                ? BinaryUtilities.UpdateSiteImage(
                context: context,
                siteModel: new SiteModel(context: context, siteId: id))
                : new ResponseCollection().ToJson();

            log.Finish(context: context);
            return(json);
        }