public async Task <ActionResult <TaskSettingType> > PostTaskSettingType([FromBody] TaskSettingType appTask)
        {
            if (appTask == null)
            {
                return(BadRequest());
            }

            _context.TaskSettingTypes.Add(appTask);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetTaskCategory", new { id = appTask.Id }, appTask));
        }
        public async Task <IActionResult> PutTaskSettingType([FromBody] TaskSettingType appTask)
        {
            if (null == appTask)
            {
                return(BadRequest());
            }

            _context.TaskSettingTypes.Update(appTask);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetTaskSettingType", new { id = appTask.Id }, appTask));
        }