Beispiel #1
0
        public IHttpActionResult GetNotificationReceiverResult(PostIdVM model)
        {
            StringBuilder traceLog = null;
            ServiceResponse <RecentResultVM> objResponse = null;

            try
            {
                traceLog = new StringBuilder();
                traceLog.AppendLine("Start: GetNotificationReceiverResult()-ResultId" + model.PostId + ",NotificationID-" + model.NotificationID);
                objResponse              = new ServiceResponse <RecentResultVM>();
                objResponse.jsonData     = TeamBL.GetNotificationReceiverResult(model.PostId, model.NotificationID);
                objResponse.IsResultTrue = true;
                return(Ok(objResponse));
            }
            catch (Exception ex)
            {
                LogManager.LogManagerInstance.WriteErrorLog(ex);
                return(BadRequest(ex.Message));
            }
            finally
            {
                traceLog.AppendLine("End:GetNotificationReceiverResult() Response Result Status-Fetched DatTime-" + DateTime.Now.ToLongDateString());
                LogManager.LogManagerInstance.WriteTraceLog(traceLog);
                traceLog = null;
            }
        }