Esempio n. 1
0
        public async Task <bool> CreateGPUPart(GPUServiceModel gPUServiceModel)
        {
            GPU gPUEntity = gPUServiceModel.To <GPU>();

            gPUEntity.Id = Guid.NewGuid().ToString();

            bool result = await this.pCCDbContext.AddAsync(gPUEntity) != null;

            await this.pCCDbContext.SaveChangesAsync();

            return(result);
        }