public async Task <ActionResult <MemberViewModel> > Post(TaskViewModel taskViewModel) { try { var createdTask = await _tasksService.AddAsync(taskViewModel); return(CreatedAtAction("Get", new { id = taskViewModel.TaskId }, createdTask)); } catch (Exception ex) { return(BadRequest("Somthing went wrong, Please try again later" + ex.Message)); } }