コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Claim_CLM claim_CLM = db.Claim_CLM.Find(id);

            db.Claim_CLM.Remove(claim_CLM);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "ID,Insurer,PolicyType,PolicyNumber,FirstName,LastName,BusinessName,BusinessContactName,AddressSearch,Address1,Address2,City,PostCode,State,PhoneNumber,MobileNumber,Email,PolicyStartDate,PolicyEndDate,PolicyStatus,OutstandingPremium,OutstandingAmount,PolicyExcess,BrokerName,BrokerContact,Was_the_loss_reported_to_the_police_,Police_Reference_Number,Details,Same_as_Risk_Address,Address,Address_1,Address_2,Suburb,INFPostcode,INFState,Reported_by,First_Name,Last_Name,Contact_Number,INFEmail,Date_of_Loss,Time_of_Loss,Loss_Cause,Secondary_Loss_Casue,Claim_No_,External_Reference_Number,Reported_Date,Loss_Description,Severity,Claim_Decision,Contact_Type,CCFirst_Name,CCLast_Name,CCPhone_Number,CCMobile_Phone,CCEmail,Preferred_Contact,Catastrophe_Event,Description,Start_Date,End_Date,Claim_Owner,Assessment,Assessor")] Claim_CLM claim_CLM)
 {
     if (ModelState.IsValid)
     {
         db.Entry(claim_CLM).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View("Create", claim_CLM));
 }
コード例 #3
0
        // GET: Claim_CLM/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Claim_CLM claim_CLM = db.Claim_CLM.Find(id);

            if (claim_CLM == null)
            {
                return(HttpNotFound());
            }
            return(View(claim_CLM));
        }