Пример #1
0
        public async Task <object> ActivateEmployeeById(Guid theBusinessId, Guid theEmployeeId)
        {
            bool response = await _employeeLogic.ActivateEmployeeById(theBusinessId, theEmployeeId);

            if (response)
            {
                return(_employeeValidation.EmployeeActivatedSuccess());
            }
            return(_employeeValidation.EmployeeIdDoesNotExist(theEmployeeId));
        }