public String OrarendFrissit([FromBody] dynamic value) { WebApiResponse resp = new WebApiResponse(); try { Guid ID = Guid.Parse(value.ID.ToString()); Guid Osztaly = Guid.Parse(value.OsztalyID.ToString()); Guid Tanterem = Guid.Parse(value.TanteremID.ToString()); Guid Tanar = Guid.Parse(value.TanarID.ToString()); Guid Tantargy = Guid.Parse(value.TantargyID.ToString()); int Nap = int.Parse(value.Nap.ToString()); int Ora = int.Parse(value.Ora.ToString()); dbmngr.OrarendFrissit(ID, Osztaly, Tanterem, Tanar, Tantargy, Nap, Ora); resp.ErrorCode = 0; } catch (OrarendNemLetezikError e) { resp.ErrorMessage = e.ErrorMessage; resp.ErrorCode = e.ErrorCode; } catch (Exception e) { resp.ErrorCode = -1; resp.ErrorMessage = e.Message; } return(JsonConvert.SerializeObject(resp)); }