private void UpdateAwardExecute() { try { if (!string.IsNullOrEmpty(Award.Name)) { _dALHelper.UpdateAward(_currentAward); window.Close(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public IHttpActionResult PutAward(int id, Award award) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != award.Id) { return(BadRequest()); } _dALAward.UpdateAward(award); return(StatusCode(HttpStatusCode.NoContent)); }