Пример #1
0
        public HttpResponseMessage GetAllFtAuthLogByFunctionId(HttpRequestMessage reqObject)
        {
            string _FunctionId = string.Empty;
            IEnumerable <FTAuthLog> _ListAuthLog = null;

            _requestedDataObject = _IDataManipulation.GetRequestedDataObject(reqObject);
            if (_requestedDataObject != null && _requestedDataObject.BusinessData != null)
            {
                _FunctionId = JsonConvert.DeserializeObject <string>(_requestedDataObject.BusinessData);
            }
            if (!string.IsNullOrWhiteSpace(_FunctionId))
            {
                _ListAuthLog = _IAuthLogService.GetAllFtAuthLogByFunctionId(_FunctionId);
            }

            if (_ListAuthLog != null)
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(_ListAuthLog, "information has been fetched successfully");
            }
            else
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(_ListAuthLog, "Data Not Found...");
            }
            _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject);
            return(_response);
        }