public void DeleteDev(int id)
        {
            Developer developer = devRep.LoadDev(id);

            if (developer != null)
            {
                bool hasTasks = taskRep.DevHasTasks(developer.Id);
                if (hasTasks)
                {
                    devRep.DeleteDev(id);
                }
            }
        }