mirrored_repositories/Flutter-Mobile-Application-Development/flutter_mvvm_architecture/lib
import 'package:flutter_mvvm_architecture/data/network/BaseApiServices.dart';
import 'package:flutter_mvvm_architecture/data/network/NetworkApiServices.dart';
import 'package:flutter_mvvm_architecture/res/appUrls.dart';

class AuthRepository{
  BaseApiServices _apiServices = NetworkApiService();

  Future<dynamic> loginApi(dynamic data) async {
    try{
      dynamic response = await _apiServices.getPostApiResponce(AppUrl.login, data);
      return response;
    }catch(error){
      throw error;
    }
  }

  
  Future<dynamic> registerApi(dynamic data) async {
    try{
      dynamic response = await _apiServices.getPostApiResponce(AppUrl.register, data);
      return response;
    }catch(error){
      throw error;
    }
  }
}