public async Task <IActionResult> Get(string id) { string userId = User.FindFirst(ClaimTypes.NameIdentifier).Value; var plan = await _plansService.GetPlanById(id, userId); if (plan == null) { return(BadRequest(new OperationResponse <string> { IsSuccess = false, Message = "Invalid operation", })); } return(Ok(new OperationResponse <Plan> { Record = plan, Message = "Plan retrieved successfully!", IsSuccess = true, OperationDate = DateTime.UtcNow })); }