Example #1
0
        public async Task <int> AddAsync(params Vehicle[] obj)
        {
            try
            {
                foreach (var item in obj)
                {
                    item.RegistrationDate = DateTime.Now;
                }

                return(await _dao.Insert(obj));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }