Example #1
0
        public Record Create(Record itemToCreate)
        {
            var record = _context.Records.Add(itemToCreate);

            _context.SaveChanges();
            return(record);
        }
Example #2
0
        public User Create(User itemToCreate)
        {
            var user = _context.Users.Add(itemToCreate);

            _context.SaveChanges();
            return(user);
        }
Example #3
0
        public Patient Create(Patient itemToCreate)
        {
            var patient = _context.Patients.Add(itemToCreate);

            _context.SaveChanges();
            return(patient);
        }
Example #4
0
        public Role CreateRole(Role itemToCreate)
        {
            var role = _context.Roles.Add(itemToCreate);

            _context.SaveChanges();
            return(role);
        }
Example #5
0
        public Refraction Create(Refraction itemToCreate)
        {
            var refraction = _context.Refractions.Add(itemToCreate);

            _context.SaveChanges();
            return(refraction);
        }