Пример #1
0
        public ActionResult <CheckDateAvailableResponseModel> CheckAvailableSite([FromBody] CheckDateAvailableInputModel data)
        {
            CheckDateAvailableResponseModel res = new CheckDateAvailableResponseModel();

            try
            {
                SiteBL bl   = new SiteBL(DbContext);
                var    temp = bl.CheckSiteAvailable(data);
                res.data = temp;

                res.Message  = "Success";
                res.Response = true;

                return(Ok(res));
            }
            catch (Exception ex)
            {
                res.Message  = ex.Message;
                res.Response = false;

                return(res);
            }
        }