コード例 #1
0
 public string DeploymentModification(ACM.Model.DeploymentPeriod request)
 {
     try
     {
         using (ACM_Redesign2014Context ctx = new ACM_Redesign2014Context())
         {
             request.ModifiedDate = DateTime.Now;
             ctx.Entry(request).State = EntityState.Modified;
             ctx.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         Error.WriteException(TraceEventType.Error, ex.Message.ToString(), "DeploymentModification");
         throw;
     }
     return "Successfully updated";
 }
コード例 #2
0
 public string CampaignMainFrameMod(CampaignMainFrame request)
 {
     try
     {
         using (ACM_Redesign2014Context ctx = new ACM_Redesign2014Context())
         {
             ctx.Entry(request).State = EntityState.Modified;
             ctx.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         Error.WriteException(TraceEventType.Error, ex.Message.ToString(), "CampaignMainFrameMod");
         throw;
     }
     return "Successfully updated";
 }