Exemple #1
0
 public ActionResult getInsurerByInsurerName(string InsurerName)
 {
     try
     {
         var           getAllViewModel = _insurerBL.GetAllInsurerByName(InsurerName, GlobalConst.Records.Skip, GlobalConst.Records.FileTake);
         FileViewModel fileviewModel   = new FileViewModel();
         fileviewModel.InsurerDetails = Mapper.Map <IEnumerable <InsurerSearch> >(getAllViewModel.InsurerDetails);
         return(Json(fileviewModel.InsurerDetails, GlobalConst.ContentTypes.TextHtml));
     }
     catch (Exception ex)
     {
         _arCommonService.CreateErrorLog(ex.Message, ex.StackTrace);
         return(View());
     }
 }
Exemple #2
0
        public void Get_AllInsurerByName()
        {
            var getAllInsurer = _IInsurerImplBL.GetAllInsurerByName("%", 0, 10);

            Assert.IsTrue(getAllInsurer != null, "Unable to find");
        }