Exemplo n.º 1
0
        public override async Task <FireEmployeeRsponse> FireEmployee(FireEmployeeRequest request, ServerCallContext context)
        {
            var employee = await _empyloyeeRepository.Frie(request.Id);

            var result = new FireEmployeeRsponse
            {
                Employee = employee
            };

            return(result);
        }
        public async Task <IActionResult> Fire(int id)
        {
            var result = await _empyloyeeRepository.Frie(id);

            if (result != null)
            {
                return(NoContent());
            }

            return(NotFound());
        }