示例#1
0
        public IHttpActionResult GetMyTeamRequestData(NumberOfRecord model)
        {
            StringBuilder traceLog = null;
            ServiceResponse <MyTeamHomeVM> objResponse = null;

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