Beispiel #1
0
        public IHttpActionResult Up()
        {
            try
            {
                var request = Context.GetCurrentRequest();
                var siteId  = request.GetPostInt("siteId");
                if (!request.IsAdminLoggin ||
                    !request.AdminPermissions.HasSitePermissions(siteId, FormUtils.PluginId))
                {
                    return(Unauthorized());
                }

                var formId = request.GetPostInt("formId");

                FormDao.UpdateTaxisToUp(siteId, formId);

                return(Ok(new
                {
                    Value = FormManager.GetFormInfoList(siteId, 0)
                }));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }