Exemplo n.º 1
0
 ValidateUpdateDocumentTypeCommand(UpdateDocumentTypeCommand cmd)
 => from x in ValidateNonNull(cmd)
 from y in (ValidateDocumentTypeId(x.Id), ValidateDocumentTypeName(x.Name))
Exemplo n.º 2
0
 Execute(UpdateDocumentTypeCommand cmd)
 => ()
 => from x in ValidateUpdateDocumentTypeCommand(cmd)
 let y                 = CreateDocumentTypeFrom(cmd)
                 let z = repository.Update(y)
                         select z.ToDocumentTypeDto();