public String OsztalyTorol([FromBody] dynamic value) { WebApiResponse resp = new WebApiResponse(); try { Guid ID = Guid.Parse(value.ID.ToString()); dbmngr.OsztalyTorol(ID); resp.ErrorCode = 0; } catch (OsztalyNemLetezikError e) { resp.ErrorMessage = e.ErrorMessage; resp.ErrorCode = e.ErrorCode; } catch (Exception e) { resp.ErrorCode = -1; resp.ErrorMessage = e.Message; } return(JsonConvert.SerializeObject(resp)); }