public void Post([FromBody] ImageResponseParam imageResponse)
 {
     if (imageResponse?.Data?.Count > 0)
     {
         foreach (var response in imageResponse.Data)
         {
             _frImageResponseRespository.AddFRResponseDetail(new FRResponseDetail
             {
                 Body            = response.Body,
                 OCRDateTime     = response.OCRDateTime,
                 ImageReLocation = response.ImageReLocation,
                 ImageFTPPath    = response.ImageFTPPath,
                 CameraName      = response.CameraName,
                 CameraIpAddress = response.CameraIpAddress
             });
         }
     }
 }
        public string Get(string setting)
        {
            if (setting.ToLowerInvariant() == "init")
            {
                _frImageResponseRespository.RemoveAllImageResponseDetails();
                var name = _frImageResponseRespository.CreateIndex();

                var enrollementDetails = new ImageResponseParam
                {
                    // Body = "{\"_id\":\"5d905c5727a23d41c8c9f0fc\",\"Id\":\"5e80b5c4-a663-4b98-8f1c-3eb70015fa41\",\"EnrolllerType\":1,\"Body\":\"{\\\"MobileNumber\\\":\\\"1122222222\\\",\\\"EnrollerID\\\":\\\"5e80b5c4-a663-4b98-8f1c-3eb70015fa41\\\",\\\"EnrollementType\\\":\\\"1\\\",\\\"FirstName\\\":\\\"sdfg\\\",\\\"MiddleName\\\":\\\"dsfg\\\",\\\"LastName\\\":\\\"dsfg\\\",\\\"Gender\\\":\\\"1\\\",\\\"Age\\\":0,\\\"DateOfBirth\\\":\\\"2019-09-02T18:30:00.000Z\\\",\\\"Identity\\\":\\\"fdsg\\\",\\\"Address\\\":\\\"klsghsdkjf\\\",\\\"Email\\\":\\\"[email protected]\\\",\\\"IsSMSNotifcationEnabled\\\":true,\\\"IsEmailNotificationEnabled\\\":true,\\\"Title\\\":\\\"Student Registration Details\\\"}\",\"UpdatedOn\":\"2019-09-29T07:25:11.052Z\",\"HeaderImage\":null,\"UserId\":0,\"Email\":\"[email protected]\",\"MobileNumber\":\"1122222222\"}",
                    // UpdatedOn = DateTime.UtcNow,
                };

                _frImageResponseRespository.AddFRResponseDetail(new FRResponseDetail()
                {
                    // Body =enrollementDetails.Body,
                    // OCRDateTime = DateTime.UtcNow
                });

                _frImageResponseRespository.AddFRResponseDetail(new FRResponseDetail()
                {
                    //  Body = enrollementDetails.Body,
                    // OCRDateTime = DateTime.UtcNow
                });

                _frImageResponseRespository.AddFRResponseDetail(new FRResponseDetail()
                {
                    // Body = enrollementDetails.Body,
                    //  OCRDateTime = DateTime.UtcNow
                });

                _frImageResponseRespository.AddFRResponseDetail(new FRResponseDetail()
                {
                    // Body = enrollementDetails.Body,
                    //  OCRDateTime = DateTime.UtcNow
                });

                return("Database FRDB was created, and collection 'Image Response' was filled with 4 sample items");
            }

            return("Unknown");
        }