public async Task <IActionResult> LogTime([FromBody] AddLogTimeRecordDto dto) { var validator = CheckValidation(dto); if (!validator.IsValid) { throw new BadRequestException(validator.Errors); } var result = await _timeRecordService.LogTimeAsync(User.Identity.Name, dto); return(ResultOk(result)); }