public ActionResult Publish(InserLogRequest request) { BaseResponse baseResponse = null; //autontication var autRequest = new AuthenticationRequest { ProjectCode = request.ProjectCode, Password = request.Password }; baseResponse = _dbHelper.Authentication(autRequest); if (baseResponse.Code != (int)ResponseCode.SUCCESS) { return(BadRequest(baseResponse.Message)); } baseResponse = _publisher.Publish(request); if (baseResponse.Code != (int)ResponseCode.SUCCESS) { return(BadRequest(baseResponse)); } return(Ok(baseResponse)); }