Example #1
0
 /*
 // GET api/<controller>/5
 public UserDTO Get(int id)
 {
     UsersBL oUsersBL = new UsersBL();
     UserDTO oUserDTO = oUsersBL.Get(id);
     return oUserDTO;
 }
 */
 // GET api/<controller>/5
 public UserDataModel Get(int id)
 {
     UserWorkflows oUserWorkflows = new UserWorkflows();
     UserDataModel oUserDataModel = oUserWorkflows.GetUser(id);
     return oUserDataModel;
 }
Example #2
0
 // GET api/<controller>
 public IEnumerable<UserDataModel> Get()
 {
     UserWorkflows oUserWorkflows = new UserWorkflows();
     List<UserDataModel> oUserDataModels = oUserWorkflows.GetUsers();
     return oUserDataModels;
 }