public async Task <BookEntity> AddBook(BookProxy payload) { var userId = Guid.NewGuid(); var model = new BookEntity() { Id = Guid.NewGuid(), Name = payload.Name, Code = payload.Code, Count = payload.Count }; try { await _repository.AddAndSaveAsync(model); } catch (Exception ex) { return(model); } return(model); }