Exemplo n.º 1
0
        public ApiResponse Create(List <ModelParam> param)
        {
            ModelProcessor = new ModelProcessor();
            Response       = new ApiResponse();

            try
            {
                Response.text   = JsonConverter.JsonConverter.ObjToJson(ModelProcessor.Create(param));
                Response.result = true;

                return(Response);
            }
            catch
            {
                Response.text   = "Something went wrong :(";
                Response.result = false;

                return(Response);
            }
        }