示例#1
0
        public void AddProjecto(string name, int priority)
        {
            var it = new Projecto()
            {
                Name     = name,
                Priority = priority
            };

            db.Insert(it);
        }
示例#2
0
        public void EditProjecto(string oldName, string newName, int priority)
        {
            var it = new Projecto()
            {
                Name     = newName,
                Priority = priority,
                Id       = GetProjectoIdByName(oldName)
            };

            db.Update(it);
        }