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

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