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