public object Search(string q)
 {
     try
     {
         return(TreatyArrangementMdl.search_ttyHead(q));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
 public object Save([FromBody] INS_RI_TTY_HEAD treaty)
 {
     try
     {
         TreatyArrangementMdl.save_treaty(treaty);
         return(new { state = true, message = "Treaty successfully Saved" });
     }
     catch (Exception e)
     {
         return(new { state = false, message = e });
     }
 }
        public IEnumerable <object> get_estimate_risk(ProductsRisksCoversJSON riskJson)
        {
            var riskLst = TreatyArrangementMdl.get_excess(riskJson.TTA_POLH).ToList();

            return(riskLst);
        }