public Response MyFriendRequest(int MemberId)
 {
     _response = new Response();
     try
     {
         IApplicationFriendAssociationBusiness applicationFriendService = new ApplicationFriendAssociationBusiness();
         _response.responseData = applicationFriendService.MyFriendRequest(MemberId);
         _response.message      = "Records loaded successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         applicationFriendService = null;
     }
     return(_response);
 }
 public Response GetApplicationMemberList(MemberCustomModel objMemberModel)
 {
     _response = new Response();
     try
     {
         IApplicationFriendAssociationBusiness applicationFriendService = new ApplicationFriendAssociationBusiness();
         _response.responseData = applicationFriendService.GetApplicationMemberList(objMemberModel);
         _response.message      = "Records loaded successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         applicationFriendService = null;
     }
     return(_response);
 }
 public Response AddFriendRequest(ApplicationFriendAssociationModel objAssociation)
 {
     _response = new Response();
     try
     {
         IApplicationFriendAssociationBusiness applicationFriendService = new ApplicationFriendAssociationBusiness();
         _response.responseData = applicationFriendService.AddFriendRequest(objAssociation);
         _response.message      = "Request send successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         applicationFriendService = null;
     }
     return(_response);
 }
 public ApplicationFriendAPIController(ApplicationFriendAssociationBusiness _applicationFriendService)
 {
     this.applicationFriendService = _applicationFriendService;
 }