예제 #1
0
        public ActionResult Image(RenderActions.Image image)
        {
            string result = null;

            try
            {
                _renderer.Image(image);
            }
            catch (ArgumentException ex)
            {
                result = ex.Message;
            }

            if (result == null)
            {
                return(Accepted());
            }
            else
            {
                return(BadRequest(result));
            }
        }