first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using Fitness_core_BE.Models;
namespace Fitness_core_BE.Interfaces
{
public interface ICustomerPlanRepository
{
Task<List<CustomerPlan>> GetAllCustomerPlans(bool includeInactive = false, Guid? clientId = null); Task<CustomerPlan?> GetCustomerPlanById(Guid customerPlanId);
Task<CustomerPlan> CreateCustomerPlan(CustomerPlan customerPlan);
Task<CustomerPlan> UpdateCustomerPlan(CustomerPlan customerPlan);
// Status-only toggle. Deliberately separate from UpdateCustomerPlan: reactivating a
// plan must not re-run the whole cross-field configuration validation, so an older
// plan whose config predates a rule can still be switched back on.
Task<CustomerPlan?> SetCustomerPlanActive(Guid customerPlanId, Guid clientId, bool isActive);
Task<bool> DeleteCustomerPlan(Guid customerPlanId, bool softDelete = true);
}
}