public BaseServiceResult <byte[]> GetNotificationContent(long NotificationId, string NotificationAccessKey, string ReceiverToken, long ReceiverId) { try { using (IReceiverBL ReceiverBL = new ReceiverBL()) { if (!ReceiverBL.CheckTokenValid(ReceiverToken, ReceiverId)) { return(new BaseServiceResult <byte[]>(ResultStatusCodes.UnAuthorised, null)); } } using (var NotificationBL = new NotificationBL()) { return(NotificationBL.GetNotificationContent(NotificationId, NotificationAccessKey)); } } catch (Exception ex) { Logger.Error("GetNotificationContent", ex); return(BaseServiceResult <byte[]> .InternalErrorResult); } }