public string ResgisterUser(UsersDTO model)
 {
     String transactionmessage = null;
     Transform_Users_UsersDTO(model);
     transactionmessage = userService.CreateEntity(userModel);
     return transactionmessage;
 }
        public UsersDTO FindById(int id)
        {
            UsersDTO model = new UsersDTO();
            userModel = userService.Find(id);

            Mapper.CreateMap<Users, UsersDTO>();
            model = Mapper.Map<UsersDTO>(userModel);
            return model;
        }
        public UsersDTO FindByEmail(string email)
        {
            UsersDTO model = new UsersDTO();
            userModel = userService.FindByEmail(email);

            Mapper.CreateMap<Users, UsersDTO>();
            model = Mapper.Map<UsersDTO>(userModel);
            return model;
        }
 public string Update(UsersDTO user)
 {
     String transactionmessage = null;
     Transform_Users_UsersDTO(user);
     transactionmessage = userService.UpdateEntity(userModel);
     return transactionmessage;
 }
 public void Transform_Users_UsersDTO(UsersDTO model)
 {
     Mapper.CreateMap<UsersDTO, Users>();
     userModel = Mapper.Map<Users>(model);
 }