Exemplo n.º 1
0
        public bool UpdateFile(string fileDescription, Classes.File file)
        {
            bool result = DB.UpdateFile(fileDescription, file);

            file.Description = fileDescription;
            return(result);
        }
Exemplo n.º 2
0
        public bool Delete(Classes.File file)
        {
            bool result = DB.Delete(file);

            file.UserStory.Files.Remove(file);
            return(result);
        }
Exemplo n.º 3
0
        public bool CreateFile(string fileName, string description, UserStory userStory)
        {
            //create and check
            Classes.File file   = DB.CreateFile(fileName, description, userStory);
            bool         result = file != null;

            //assign values, create activity and return
            userStory.Files.Add(file);
            file.UserStory = userStory;
            CreateActivity(string.Format("\"{0}\" a été lié", file), userStory);
            return(result);
        }