コード例 #1
0
        public IHttpActionResult SendDefaultTeamNotification(NotificationRequest notifyRequest)
        {
            StringBuilder          traceLog    = null;
            ServiceResponse <bool> objResponse = null;

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