public void UpdateCodeSet(DTO.CodeSetDetails details) { var codeSet = UnitOfWork.Find <CodeSet>(details.Id); codeSet.Name = details.Name; codeSet.Description = details.Description; UnitOfWork.Commit(); }
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); }