public async Task <Response <string> > AddGuidebook(CreateGuidebookRequest request)
        {
            var guidebook = new Guidebook
            {
                Id                  = Guid.NewGuid().ToString(),
                Title               = request.Title,
                GuidebookContent    = request.GuidebookContent,
                ImageUrl            = request.ImageURL,
                EstimatedFinishTime = request.EstimatedFinishTime,
                CreatedBy           = request.CreatedBy,
                CreatedTime         = DateTimeOffset.Now.ToOffset(new TimeSpan(7, 0, 0)).DateTime,
                LastModifiedBy      = request.LastModifiedBy,
                LastModifiedTime    = DateTimeOffset.Now.ToOffset(new TimeSpan(7, 0, 0)).DateTime,
                SuitableAge         = request.SuitableAge,
                TypeId              = request.TypeId,
                DelFlag             = false,
            };

            await _unitOfWork.GuidebookRepository.AddAsync(guidebook);

            await _unitOfWork.SaveAsync();

            return(new Response <string>(guidebook.Id, $"Thêm guidebook thành công, id: {guidebook.Id}"));
        }
 public async Task <IActionResult> AddGuidebookType(CreateGuidebookRequest request)
 {
     return(Ok(await _guidebookService.AddGuidebook(request)));
 }