public ActionResult RegisterEmployyeInCompany(RegisterEmployeeRequest request) { if (!ModelState.IsValid) { return(CustomResponse(ModelState)); } try { var companyResult = _companyAppService.RegisterEmployeeInCompany(request.IdCompany, request.Employees); if (companyResult == null) { AdicionarErroProcessamento("Não foi possível localizar a empresa pelo id informado."); return(CustomResponse()); } if (companyResult.Notifications.Any()) { return(CustomResponse(companyResult.Notifications)); } return(CustomResponse()); } catch (Exception ex) { MessageException(); return(CustomExceptionResponse()); } }