Beispiel #1
0
        public String TantargyFrissit([FromBody] dynamic value)
        {
            WebApiResponse resp = new WebApiResponse();

            try
            {
                Guid ID = Guid.Parse(value.ID.ToString());
                dbmngr.TantargyFrissit(ID, value.Tantargy.ToString(), value.Tantargyroviditese.ToString());
                resp.ErrorCode = 0;
            }
            catch (TantargyNemLetezikError e)
            {
                resp.ErrorMessage = e.ErrorMessage;
                resp.ErrorCode    = e.ErrorCode;
            }
            catch (Exception e)
            {
                resp.ErrorCode    = -1;
                resp.ErrorMessage = e.Message;
            }
            return(JsonConvert.SerializeObject(resp));
        }