public PlaceTask CreateNewTask(string url) { try { if (!string.IsNullOrEmpty(url)) { var newTask = _mainController.Create(url); _responseProvider.ResponseCreated(WebOperationContext.Current); return(newTask); } } catch (Exception e) { _logger.Error(e); _responseProvider.ResponseInternalServerError(WebOperationContext.Current); return(null); } _responseProvider.ResponseInternalServerError(WebOperationContext.Current); return(null); }