public ActionResult <AddSiteResponseModel> AddSiteDetail([FromBody] AddSiteResultDetailInputModel data) { AddSiteResponseModel res = new AddSiteResponseModel(); try { SiteBL bl = new SiteBL(DbContext); var x = bl.SaveDetailSite(data); res.data = x; res.Message = "Success"; res.Response = true; return(res); } catch (Exception ex) { res.Message = ex.Message; res.Response = false; return(res); } }