public void AddProjecto(string name, int priority) { var it = new Projecto() { Name = name, Priority = priority }; db.Insert(it); }
public void EditProjecto(string oldName, string newName, int priority) { var it = new Projecto() { Name = newName, Priority = priority, Id = GetProjectoIdByName(oldName) }; db.Update(it); }