public WorkflowRoleModel AddWorkflowRole(WorkflowRoleModel data)
        {
            WorkflowRole model = _mapper.Map <WorkflowRole>(data);

            var result = _context.WorkflowRole.Add(model);

            _context.SaveChanges();
            return(_mapper.Map <WorkflowRoleModel>(result.Entity));
        }
Ejemplo n.º 2
0
 public static void MapWorkflowRole(WorkflowRole ds, WorkflowRoleModel sc)
 {
     ds.Name = sc.Name;
 }