gladyssann

UserBusinessLayer.cs

Jan 3rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. using OT_lib.Entity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using OT_lib.DataAccess;
  8.  
  9.  
  10. namespace OT_lib.BusinessLayer
  11. {
  12. public class UserBusinessLayer
  13. {
  14. public UserBusinessLayer()
  15. {
  16.  
  17. }
  18.  
  19. public int CreateUser(UserEntity user){
  20. UsersDataAccess userService = new UsersDataAccess();
  21.  
  22. try
  23. {
  24.  
  25. userService.CreateUser(user);
  26. }
  27. catch (Exception ex)
  28. {
  29.  
  30. throw ex;
  31. }
  32.  
  33. return 0;
  34. }
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment