public void CreateLocker(Locker locker) { try { if (string.IsNullOrWhiteSpace(locker.Row) || string.IsNullOrWhiteSpace(locker.Col)) { throw new Exception("Row Col ผิดพลาด"); } locker._id = Guid.NewGuid().ToString(); locker.CreateDate = DateTime.UtcNow; dac.CreateLocker(locker); } catch (Exception e) { throw new Exception(e.Message); } }