Exemplo n.º 1
0
        public String TantargyHozzaad([FromBody] dynamic value)
        {
            WebApiResponse resp = new WebApiResponse();

            try
            {
                dbmngr.TantargyHozzaad(value.Tantargy.ToString(), value.Tantargyroviditese.ToString());
                resp.ErrorCode = 0;
            }
            catch (TantargyMarLetezikError e)
            {
                resp.ErrorMessage = e.ErrorMessage;
                resp.ErrorCode    = e.ErrorCode;
            }
            catch (Exception e)
            {
                resp.ErrorCode    = -1;
                resp.ErrorMessage = e.Message;
            }

            return(JsonConvert.SerializeObject(resp));
        }