예제 #1
0
        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);
            }
        }