public async Task <IHttpActionResult> ConfirmOrder(string serviceId) { var user = GetUserInformationFromToken(); if (user == null || string.IsNullOrEmpty(user.UserId)) { return(BadRequest("Invalid User.")); } if (string.IsNullOrWhiteSpace(serviceId)) { return(Ok(new ResponseModel <string>(ResponseStatus.NotFound, null, "Invalid service."))); } var result = await _orderBusiness.ConfirmOrder(serviceId, user); if (!result) { return(Ok(new ResponseModel <string>(ResponseStatus.NotFound, null, "Service not found"))); } return(Ok(new ResponseModel <string>(ResponseStatus.Ok, null, "Order has been confirmed."))); }