Exemplo n.º 1
0
 public ActionDTO Get_By_iD(int id)
 {
     try
     {
         using (CarRentalEntities context = new CarRentalEntities())
         {
             return(actionMapping.MapToActionDTO(context.usp_Action_Get_By_Id(id).FirstOrDefault()));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }