using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace xServices.TermsConditions.Interfaces
{
public interface IXTermsConditionsControllerActions
{
///
/// Terms and Conditions Provider ...
///
IXTermsComditionsProvider TermsProvider { get; }
///
/// Retrieved all Exists Languages Terms and Conditions ...
///
///
Task>> TermsLanguages();
///
/// Check Has Terms and Conditions based on Specified Language ...
///
/// if null, used Default Language ...
///
Task> HasTerms(
[FromRoute] string language = null
);
///
/// Retrieve Terms and Conditions for Specified Language ...
///
/// if null, used Default Language ...
///
Task> GetTerms(
[FromRoute] string language = null
);
///
/// Add Terms and Conditions for Specified Language ...
///
///
///
///
Task> AddTerms(
[FromRoute] string language,
[FromQuery] string terms
);
///
/// Remove Terms and Conditions of Specified Language ...
///
///
///
Task> RemoveTerms(
[FromRoute] string language
);
///
/// Update Terms and Conditions of Specified Language ...
///
///
///
///
Task> UpdateTerms(
[FromRoute] string language,
[FromQuery] string terms
);
}
}