public static NoteModel CreateNoteModel( NoteRepository noteRepository, UserModel userModel, NotePatch notePatch = null ) { var uniqueName = new Guid().ToString("N"); if (notePatch == null) { notePatch = new NotePatch( "Title_" + uniqueName, "Desc_" + uniqueName, NoteStatus.Disabled ); } return(noteRepository.CreateModel(userModel.Id, notePatch).Result); }