/// <summary> /// /// </summary> /// <param name="tributeId"></param> /// <returns></returns> public string GetTributeEndDate(int tributeId) { NotesResource objNoteResource = new NotesResource(); return objNoteResource.GetTributeEndDate(tributeId); }
/// <summary> /// Method to get the list of notes for the selected tribute /// </summary> /// <param name="objNote">Note entity conatining tributeId</param> /// <returns>List of notes</returns> public List<Note> GetTributeNotes(Note objNote) { NotesResource objNotesResource = new NotesResource(); object[] param = { objNote }; return objNotesResource.GetTributeNotes(param); }
public void GetLastNoteForTribute(object[] objTributeId) { NotesResource objNoteResource = new NotesResource(); objNoteResource.GetLastNoteForTribute(objTributeId); }
/// <summary> /// Method to get the note detail based on the selected note /// </summary> /// <param name="objNote">Note entity containing note id</param> /// <returns>Filled note entity with the note details</returns> public Note GetNoteDetails(Note objNote) { NotesResource objNoteResource = new NotesResource(); object[] param = { objNote }; return objNoteResource.GetNoteDetail(param); }
/// <summary> /// /// </summary> /// <param name="tributeId"></param> /// <returns></returns> public bool GetCustomHeaderDetail(int tributeId) { NotesResource objNoteResource = new NotesResource(); return objNoteResource.GetCustomHeaderDetail(tributeId); }
/// <summary> /// /// </summary> /// <param name="tributeId"></param> /// <returns></returns> public int GetCurrentNotes(int tributeId) { NotesResource objNoteResource = new NotesResource(); return objNoteResource.GetCurrentNotes(tributeId); }
/// <summary> /// Method to delete note /// </summary> /// <param name="objNote">Note entity containing noteid</param> public void DeleteNote(Note objNote) { NotesResource objNoteResource = new NotesResource(); object[] param = { objNote }; objNoteResource.Delete(param); }
/// <summary> /// Method to update the note details /// </summary> /// <param name="objNote">Note entity containing notes data.</param> public void UpdateNote(Note objNote) { NotesResource objNoteResource = new NotesResource(); object[] param = { objNote }; objNoteResource.UpdateRecord(param); }
/// <summary> /// Method to send the request to Notes resource for the record insertion. /// </summary> /// <param name="objVid">Filled Notes Entity</param> /// <returns>Object containing the Identity or Error Message</returns> public void SaveNote(Note objNote) { NotesResource objNotesManager = new NotesResource(); TributeResource objTributeResource = new TributeResource(); Tributes objTribute = new Tributes(); object[] param = { objNote }; object noteId = objNotesManager.InsertDataAndReturnId(param); objNote.NotesId = int.Parse(noteId.ToString()); //to send email objTribute.TributeId = int.Parse(objNote.UserTributeId.ToString()); objTribute.TypeDescription = objNote.ModuleTypeName; object[] paramMail = { objTribute }; List<UserInfo> objUser = objTributeResource.GetTributeAdministrators(paramMail); if (objUser.Count > 0) { SendEmail(objUser, objNote); } //Function to send the mail to the list of users who have added the Tribute in their list of favourites List<UserInfo> objUserFav = objTributeResource.GetFavouriteTributeUsers(paramMail); if (objUserFav.Count > 0) { //As per discussion with Rupendra: will send the mail in "To" field. //ie a comma separated list of users in the "to" field SendEmail(objUserFav, objNote); } }