public IHttpActionResult SaveDepartment([FromBody] Department department)
        {
            if (department == null)
            {
                return(BadRequest(ActionMessage.NullOrEmptyMessage));
            }

            DirectorActivity activitie = new DirectorActivity(new UnitOfWork());

            activitie.CreatedBy = User.Identity.GetUserName();
            activitie.SaveDepartment(department);
            return(Ok(ActionMessage.SaveMessage));
        }
        public IHttpActionResult ChangeJobDescriptionDeadLine([FromBody] ChangingDeadlinePoco poco)
        {
            if (poco == null)
            {
                return(BadRequest(ActionMessage.NullOrEmptyMessage));
            }

            DirectorActivity activitie = new DirectorActivity(new UnitOfWork());

            activitie.CreatedBy = User.Identity.GetUserName();
            activitie.ChangeJobDescriptionDeadLine(poco);
            return(Ok(ActionMessage.SaveMessage));
        }
        public IHttpActionResult SaveSection([FromBody] Section section)
        {
            if (section == null)
            {
                return(BadRequest(ActionMessage.NullOrEmptyMessage));
            }
            if (section.DeparmentId == Guid.Empty)
            {
                return(BadRequest("Department Id can't be null or empty!"));
            }

            DirectorActivity activitie = new DirectorActivity(new UnitOfWork());

            activitie.CreatedBy = User.Identity.GetUserName();
            activitie.SaveSection(section);
            return(Ok(ActionMessage.SaveMessage));
        }