public async Task<IHttpActionResult> AddSubscription(SubscriptionModel model)
        {
            try
            {
                var subscription = new Subscription();
                subscription.Description = model.Description;
                subscription.EndDate = model.EndDate;
                subscription.GatewayId = model.GatewayId;
                subscription.IsActiveSubscription = model.IsActiveSubscription ?? true;
                subscription.Name = model.Name;
                subscription.Price = model.Price ?? 0;
                subscription.StartDate = model.StartDate;
                subscription.TimeDuration = model.TimeDurationInDays;
                subscription.Active = true;
                subscription.CreatedOn = DateTime.UtcNow;

                //todo : add useid in createdby

                _Uow._Subscription.Add(subscription);
                await _Uow.CommitAsync();
                return Ok();
            }
            catch (Exception ex)
            {
                return InternalServerError(ex);
            }
        }
        public async Task<IHttpActionResult> UpdateSubscription(SubscriptionModel model)
        {
            try
            {
                var subscription = await _Uow._Subscription.GetByIdAsync(model.Id);
                subscription.Description = model.Description;
                subscription.EndDate = model.EndDate;
                subscription.GatewayId = model.GatewayId;
                subscription.IsActiveSubscription = model.IsActiveSubscription ?? true;
                subscription.Name = model.Name;
                subscription.Price = model.Price ?? 0;
                subscription.StartDate = model.StartDate;
                subscription.TimeDuration = model.TimeDurationInDays;

                //todo : add useid in updatedby

                _Uow._Subscription.Update(subscription);
                await _Uow.CommitAsync();
                return Ok();
            }
            catch (Exception ex)
            {
                return InternalServerError(ex);
            }
        }