public void UpdateCase(CaseDetails details) { var theCase = UnitOfWork.Find <Domain.Summaries.Case.Case>(details.Id); details.MapInto(theCase); UnitOfWork.Commit(); }
public Guid CreateCase(Guid agencyId, string number, CaseDetails details) { // TODO: Permissions //RequireModulePermissions(agencyId, ModuleType.Case, new ModulePermissions() {CanCreate = true}); var newCase = new Domain.Summaries.Case.Case(IdentityId, agencyId, number); details.MapInto(newCase); UnitOfWork.Add(newCase); UnitOfWork.Commit(); return(newCase.Id); }