Example #1
0
 private void UpdateAwardExecute()
 {
     try
     {
         if (!string.IsNullOrEmpty(Award.Name))
         {
             _dALHelper.UpdateAward(_currentAward);
             window.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Example #2
0
        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));
        }