public async Task <IActionResult> Create([FromBody] TaskDtoForPost task)
        {
            var entity = _mapper.Map <TaskItem>(task);

            _tasksService.AddTaskItem(entity);

            if (await _context.SaveChangesAsync() == 0)
            {
                // return new ObjectResult(StatusCodes.Status304NotModified));
                return(BadRequest("couldn't save the new task"));
            }
            return(Ok());
        }