public string Update(InvoiceType entity) { if (entity.IsValid()) { return(this.repository.Update(entity)); } else { return("Entity is not in valid state"); } }