public async Task <AuthenticationResponseModel> LogIn(LoginModel model)
        {
            var unit = await _commonService.ValidUnit(model.Unit);

            if (!unit.IsSuccessStatusCode)
            {
                return(new AuthenticationResponseModel(false, "Unidade inválida."));
            }

            var result = await _tmsApiServiceBase.Authenticate(model.CompanyId, model.UserName, model.UserPassword);

            IsLogedIn = result.IsAuthenticated;

            if (result.IsAuthenticated)
            {
                User = new UserModel(unit.Response, _tmsApiServiceBase.EmployeeViewInfo);
            }

            return(result);
        }