public void EnterToOperationUser(OperationUser operationUser)
        {
            var opUser = _objectSearchContext.OperationUser.FirstOrDefault(p => p.UserId == operationUser.UserId);

            if (opUser != null)
            {
                _objectSearchContext.Remove(opUser);
            }
            _objectSearchContext.OperationUser.Add(operationUser);
        }
 public void Delete(Mission mission)
 {
     if (mission == null)
     {
         throw new ArgumentNullException(nameof(mission));
     }
     _objectSearchContext.Remove(mission);
 }
Esempio n. 3
0
 public void Delete(User user)
 {
     if (user == null)
     {
         throw new ArgumentNullException(nameof(user));
     }
     _objectSearchContext.Remove(user);
 }
Esempio n. 4
0
 public void Delete(Target target)
 {
     if (target == null)
     {
         throw new ArgumentNullException(nameof(target));
     }
     _objectSearchContext.Remove(target);
 }
Esempio n. 5
0
 public void Delete(Image image)
 {
     if (image == null)
     {
         throw new ArgumentNullException(nameof(image));
     }
     _objectSearchContext.Remove(image);
 }
 public void Delete(DetectedObject detectedObject)
 {
     if (detectedObject == null)
     {
         throw new ArgumentNullException(nameof(detectedObject));
     }
     _objectSearchContext.Remove(detectedObject);
 }