public ActionResult SiteRedirect_Delete(SiteRedirectModel siteRedirectModel) { var result = UnigateObject.Delete("SiteRedirect") .WhereEqualTo("ContentId", siteRedirectModel.ContentId) .Execute(); return(View()); }
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")); } }