コード例 #1
0
 /// <summary>
 /// Liste de tout les roles.
 /// </summary>
 /// <returns></returns>
 List <RoleDTO> IRoleEngine.List()
 {
     using (CarRentalEntities context = new CarRentalEntities())
     {
         try
         {
             return(roleMapping.MapToListRoleDTO(context.usp_Role_List().ToList()));
         }
         catch (Exception)
         {
             throw;
         }
     }
 }