public void InsertSingleSecurityMfNoExceptionTest()
        {
            var testsecuritiesMf = GetsecuritiesMfsList();
            var status           = _repository.InsertSecurityMfData(testsecuritiesMf.FirstOrDefault());

            Assert.AreEqual(status.Status, true);
        }
        public HttpResponseMessage Post(SecurityMutualFundDto insertDto)
        {
            HttpResponseMessage response;

            try
            {
                var optStatus  = SecurityMfRepository.InsertSecurityMfData(insertDto);
                var securityMf = SecurityMfRepository.GetSecurityMfById(insertDto.Id);
                response = optStatus != null && optStatus.Status == true?Request.CreateResponse <SecurityMutualFundDto>(HttpStatusCode.OK, securityMf) : new HttpResponseMessage(HttpStatusCode.NotFound);
            }
            catch (Exception exception)
            {
                response = Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exception.Message);
            }
            return(response);
        }