Esempio n. 1
0
        public async Task <bool> Create(HISProductModule story)
        {
            dbContext.Add(story);
            var result = await dbContext.SaveChangesAsync();

            if (result != 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public async Task <bool> Create(ParameterType story)
        {
            dbContext.Add(story);
            var result = await dbContext.SaveChangesAsync();

            if (result != 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }