コード例 #1
0
        public ActionResult SetNotification(int id, string notif, string value)
        {
            if (!notif.StartsWith("notify-"))
            {
                return(Content("Unknown notification"));
            }
            ProjectNotification pnot = (ProjectNotification)Enum.Parse(typeof(ProjectNotification), notif.Substring(7));

            CurrentUserModel.SetProjectNotification(pnot, id, value == "true");
            return(Content("OK"));
        }