Example #1
0
        public static bool AddTask(TaskDTO td)
        {
            Dal.Task t  = TaskDTO.ToDal(td);
            int      id = TaskDAL.AddTask(t);

            if (id != 0)
            {
                if (td.Dock != null)
                {
                    Document doc = new Document();
                    doc.DocCoding = td.Dock;
                    doc.DocUser   = id;
                    doc.type      = 6;
                    doc.DocName   = td.DocName;
                    DocumentBL.AddUserDocuments(new DocumentDTO(doc));
                }
                return(true);
            }
            return(false);
        }