public IHttpActionResult EditWorkFlowInformationById(int workFlowId) { try { if (HttpContext.Current.User.Identity.IsAuthenticated) { var workFlow = _workFlowRepository.EditWorkFlowInformationById(workFlowId); if (workFlow != null) { return(Ok(workFlow)); } else { return(Ok(new { status = true })); } } else { return(BadRequest()); } } catch (Exception ex) { _errorLog.LogException(ex); throw; } }