25 lines
439 B
C#
25 lines
439 B
C#
|
using HotelAbstractions.Models;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace HotelAbstractions.Logic
|
|||
|
{
|
|||
|
public interface IHotelLogic
|
|||
|
{
|
|||
|
List<Hotel> GetAll();
|
|||
|
|
|||
|
Hotel? Get(int id);
|
|||
|
|
|||
|
Hotel? Create(Hotel hotel);
|
|||
|
|
|||
|
Hotel? CreateId(Hotel hotel);
|
|||
|
|
|||
|
Hotel? Update(Hotel hotel);
|
|||
|
|
|||
|
Hotel? Delete(int id);
|
|||
|
}
|
|||
|
}
|