Advertisement
Guest User

Untitled

a guest
Aug 7th, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class MyModel {
  2. public Boolean FieldOne {get; set;}
  3. public Boolean FieldTwo {get; set;}
  4. public Boolean FieldThree {get; set;}
  5. public Boolean FieldFour {get; set;}
  6. public Boolean FieldFive {get; set;}
  7. }
  8.  
  9. // current implementation
  10. public class SomeBLClass {
  11. public NewModel MethodToCleanMyModel(MyModel model){
  12. if(FieldOne){
  13. SomeLogicOne();
  14. }
  15. if(FiendWto){
  16. SomeLogicTwo();
  17. }
  18. ...
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement