Informedica.GenForm.Mvc3.Controllers.ProductController.AddNewShape C# (CSharp) Method

AddNewShape() public method

public AddNewShape ( Newtonsoft.Json.Linq.JObject shapeDto ) : System.Web.Mvc.ActionResult
shapeDto Newtonsoft.Json.Linq.JObject
return System.Web.Mvc.ActionResult
        public ActionResult AddNewShape(JObject shapeDto)
        {
            var success = true;
            var message = String.Empty;
            var shape = GetShapeFromJObject(shapeDto);

            try
            {
            }
            catch (Exception e)
            {
                success = false;
                message = e.ToString();
            }

            return this.Direct(new { success, data = shape, message });
        }