Example #1
0
        public void CreateRecord(ServiceRequestModel request)
        {
            request.id = Guid.NewGuid();
            var response = _serviceRequestContext.servicerequest.Add(request);

            _serviceRequestContext.SaveChanges();
        }
Example #2
0
        private void Seed()
        {
            using (var context = new ServiceRequestContext())
            {
                context.Database.EnsureDeleted();
                context.Database.EnsureCreated();

                context.SaveChanges();
            }
        }