public ActionResult SiteRedirect_Delete(SiteRedirectModel siteRedirectModel)
        {
            var result = UnigateObject.Delete("SiteRedirect")
                         .WhereEqualTo("ContentId", siteRedirectModel.ContentId)
                         .Execute();

            return(View());
        }
Exemple #2
0
        public ActionResult Remove(string photoId)
        {
            MDataSourceResult result = UnigateObject.Delete(Manager.Settings.Current.PhotoListTableName).Where("Id", Convert.ToInt32(photoId)).Execute();

            if (result.ResultCode == MCMS.Common.Result.ResultCode.Successfull)
            {
                return(Json("success"));
            }
            else
            {
                return(Json("error"));
            }
        }