Beispiel #1
0
 public async Task <JsonResult> SLGetByOwner(string id, string aid)
 {
     try {
         var data = SystemLogsService.GetByOIDAPI(Guid.Parse(id), Guid.Parse(aid));
         return(Success(SystemLogsVM.MsToVMs(data)));
     } catch { return(Failed(MessageUtilityService.ServerError())); }
 }
Beispiel #2
0
 public static bool Insert(Guid id, string desc, Guid oid, Guid aid, Guid dtid, bool ia)
 {
     try {
         var data = SystemLogsVM.set(id, desc, oid, aid, dtid, ia);
         using (var context = new CentralProcessContext()) {
             context.SystemLogsDB.Add(data);
             context.SaveChanges();
             return(true);
         }
     } catch { return(false); }
 }