コード例 #1
0
 /// <summary>
 /// Retourne la liste d'actions d'un role
 /// </summary>
 /// <param name="idRole"></param>
 /// <returns></returns>
 public List <ActionDTO> Get_Role_Actions(int idRole)
 {
     try
     {
         using (CarRentalEntities context = new CarRentalEntities())
         {
             return(actionMapping.MapToListActionDTO(context.usp_Action_List_By_Role(idRole).ToList()));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }