Пример #1
0
        public ResponeModel saveReference(string act, string contr, string kolom, string HideShow)
        {
            ResponeModel model = new ResponeModel();

            Context.UserReference dbitem = RepoUserReference.find(UserPrincipal.id, act, contr, kolom) != null?RepoUserReference.find(UserPrincipal.id, act, contr, kolom) : new Context.UserReference();

            dbitem.Action     = act;
            dbitem.Controller = contr;
            dbitem.Coloumn    = kolom;
            dbitem.HideShow   = HideShow;
            dbitem.IdUser     = UserPrincipal.id;

            RepoUserReference.save(dbitem, UserPrincipal.id);
            return(model);
        }