Пример #1
0
        public void UpdateCodeSet(DTO.CodeSetDetails details)
        {
            var codeSet = UnitOfWork.Find <CodeSet>(details.Id);

            codeSet.Name        = details.Name;
            codeSet.Description = details.Description;
            UnitOfWork.Commit();
        }
Пример #2
0
        public Guid CreateCodeSet(Guid agencyId, string category, DTO.CodeSetDetails details)
        {
            var agency  = UnitOfWork.Find <Agency>(agencyId);
            var codeSet = agency.CreateCodeSet(category, details.Name, details.Description);

            UnitOfWork.Commit();
            return(codeSet.Id);
        }