Esempio n. 1
0
        // GET api/<controller>/5
        public Family Get(int id)
        {
            Family rtnFamily;

            using (SqlUnitOfWork unitOfWork = new SqlUnitOfWork("gp"))
            {
                FamilyRepository familyRepo = new FamilyRepository(unitOfWork);
                rtnFamily = familyRepo.Get(id);

                unitOfWork.Commit();
            }

            return(rtnFamily);
        }