public async Task <CreateOperationalTaskViewModel> CreateOtherTask(NewOtherTaskModel model)
        {
            var mappedModel = model.Map <IOperationalTaskModel>();
            var result      = await operationalTaskService.CreateOtherTask(mappedModel);

            janitorHubs.Clients.All.refreshOpenTasks();
            janitorHubs.Clients.All.refreshJanitorTasks();
            managementHubs.Clients.All.refreshWeekPlanGridTasks();
            managementHubs.Clients.All.refreshWeekPlanListTasks();
            return(result);
        }
        public async Task <CreateOperationalTaskViewModel> CreateJanitorOtherTask(NewOtherTaskModel model)
        {
            CreateOperationalTaskViewModel result = await CreateOtherTask(model);

            if (model.TeamLeadId.HasValue)
            {
                var assignedMemberModel = model.Map <MemberAssignModel>();
                assignedMemberModel.DayAssignId = result.DayAssignId;
                await AssignEmployees(assignedMemberModel);
            }
            return(result);
        }