Exemple #1
0
        public bool InsertTaskDetail([FromBody] Models.TaskDetails taskDetails)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                taskDetails.id = TaskEntities.GetMaxId() + 1;
                var taskDetailsObj = Mapper.Map <Models.TaskDetails, DataAccessLayer.TaskDetail>(taskDetails);
                status = TaskEntities.InsertTask(taskDetailsObj);
            }
            return(status);
        }