/// <summary> /// update the quality information of an intervention by using engieer service /// if update success redirect to intervention detail page /// else redirect to error page /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSave_Click(object sender, EventArgs e) { try { //parse date format to dd/mm/yyyy DateTime date = DateTime.Parse(InterventionVisitDate.Text, new CultureInfo("de-DE")); Guid interventionId = new Guid(Request.QueryString["Id"]); bool updateDetails = engineerService.updateInterventionDetail(interventionId, InterventionComments.Text, Int32.Parse(LifeRemaining.Text), date); //if update success redirect to intervention detail page if (updateDetails == true) { Response.Redirect("~/Engineer/InterventionDetail.aspx", false); } } catch (Exception) { Response.Redirect("~/Errors/InternalErrors.aspx", true); } }