// PUT: api/Perawat/5 public async Task <IHttpActionResult> Put(int id, [FromBody] perawat value) { try { var result = await domain.SaveChange(value); return(Ok(result)); } catch (Exception ex) { return(BadRequest(ex.Message.ToString())); } }
// PUT: api/Perawat/5 public async Task <IHttpActionResult> Put(int id, [FromBody] perawat value) { try { var result = await domain.SaveChange(value); return(Ok(result)); } catch (Exception ex) { return(BadRequest(ex.Message.ToString())); } }