public bool UpdateDrawerDetection(DrawerDetection drawerDetection) { _unitOfWork.DrawerDetectionRepository.Update(drawerDetection); _unitOfWork.SaveChangesAsync(); return(true); }
public void InsertDrawerDetection(DrawerDetection drawerDetection) { _unitOfWork.DrawerDetectionRepository.Add(drawerDetection); _unitOfWork.SaveChanges(); }