Beispiel #1
0
 public ResultInfo.Result SetCommandAsExecuted(long endPointCommandID, Guid endPointKeyPass, DateTime?execTime)
 {
     ResultInfo.Result result = ResultInfo.GenerateErrorResult();
     try
     {
         db.SubmitEndpointCommandExecuted(endPointCommandID, endPointKeyPass, execTime);
         result = ResultInfo.GenerateOKResult();
     }
     catch { }
     return(result);
 }
Beispiel #2
0
 public ResultInfo.Result SetCommandAsExecuted(long endPointCommandID, Guid endPointKeyPass, DateTime?execTime)
 {
     ResultInfo.Result result = Result.GenerateFailedResult();
     try
     {
         db.SubmitEndpointCommandExecuted(endPointCommandID, endPointKeyPass, execTime);
         result = Result.GenerateOKResult();
     }
     catch (Exception ex)
     { result.Message = ex.Message + " -- " + ex.InnerException; }
     return(result);
 }