public bool UpdateFile(string fileDescription, Classes.File file) { bool result = DB.UpdateFile(fileDescription, file); file.Description = fileDescription; return(result); }
public bool Delete(Classes.File file) { bool result = DB.Delete(file); file.UserStory.Files.Remove(file); return(result); }
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); }