Example #1
0
        public void InsertTest()
        {
            BusinessLogic    businessLogic = new BusinessLogic();
            SaveDetailModels detailModel   = new SaveDetailModels
            {
                Name        = "Manish",
                ContinentId = 2,
                CountryId   = 5,
                CityId      = 14,
                Remember    = true
            };
            var addDetail = businessLogic.AddDetail(detailModel);

            Assert.AreNotEqual(0, addDetail);
        }
 public IHttpActionResult AddDetail([FromBody] SaveDetailModels model)
 {
     return(Ok(_businessLogic.AddDetail(model)));
 }