public async Task <ActionResult> UpdateStatus([FromHeader(Name = "x-tenant")] string tenantid, [FromHeader(Name = "Ocp-Apim-Subscription-Key")] string subscription, [FromHeader(Name = "x-user")] string userId, string id, ServicePlanStatus status) { var data = await _servicePlanService.UpdateServicePlanStatus(tenantid, userId, id, status); return(Ok(data)); }
public async Task <ServicePlanModel> UpdateServicePlanStatus(string tenantId, string userId, string id, ServicePlanStatus servicePlanStatus) { ServicePlanModel servicePlanModel = await _servicePlanRepository.UpdateServicePlanStatus(tenantId, userId, id, (int)servicePlanStatus); return(servicePlanModel); }