Пример #1
0
        public ActionResult <AddSiteResponseModel> AddSiteImage([FromBody] AddSiteResultImageInputModel data)
        {
            AddSiteResponseModel res = new AddSiteResponseModel();

            try
            {
                SiteBL bl = new SiteBL(DbContext);
                var    x  = bl.SaveImageSite(data);

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

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

                return(res);
            }
        }