NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

using DataLayer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;

namespace BusinessLayer
{
[ServiceContract]
public interface IAllRepository
{
// Şehirler
[OperationContract]
[WebGet(UriTemplate="ListCity", ResponseFormat=WebMessageFormat.Json)]
List<City> ListCity();

[OperationContract]
[WebGet(UriTemplate="GetCitys/{id}", ResponseFormat=WebMessageFormat.Json)]
City GetCitys(string id);

//İlçeler
[OperationContract]
[WebGet(UriTemplate = "ListTown", ResponseFormat = WebMessageFormat.Json)]
List<Town> ListTown();

[OperationContract]
List<Town> ListTownByCity(string ID);

[OperationContract]
[WebGet(UriTemplate = "GetTowns/{id}", ResponseFormat = WebMessageFormat.Json)]
Town GetTowns(string id);

//Otel Özellikleri
[OperationContract]
[WebGet(UriTemplate = "ListHotelFeature", ResponseFormat = WebMessageFormat.Json)]
List<HotelFeature> ListHotelFeature();

[OperationContract]
[WebGet(UriTemplate = "GetHotelFeatures/{id}", ResponseFormat = WebMessageFormat.Json)]
HotelFeature GetHotelFeatures(string id);


//Otel
[OperationContract]
[WebGet(UriTemplate = "ListHotel", ResponseFormat = WebMessageFormat.Json)]
List<Hotel> ListHotel();

[OperationContract]
[WebInvoke(UriTemplate = "AddHotel?HotelName={HotelName}&HotelImageFileName={HotelImageFileName}&HotelImage={HotelImage}&HotelPrice={HotelPrice}&HotelLatitude={HotelLatitude}&HotelLongitude={HotelLongitude}&HotelWebSite={HotelWebSite}&RT_Id={RT_Id}&CityId={CityId}&TownId={TownId}&HT_Id={HT_Id}&UserId={UserId}", Method = "POST", ResponseFormat = WebMessageFormat.Json)]
void AddHotel(string HotelName, string HotelImageFileName, string HotelImage, string HotelPrice, string HotelLatitude, string HotelLongitude, string HotelWebSite, string RT_Id, string CityId, string TownId, string HT_Id, string UserId);

[OperationContract]
[WebInvoke(UriTemplate="RemoveHote/{id}", Method="DELETE", ResponseFormat=WebMessageFormat.Json)]
void RemoveHotel(string id);

[OperationContract]
[WebInvoke(UriTemplate = "AddHotel?Id={HotelId}HotelName={HotelName}&HotelImageFileName={HotelImageFileName}&HotelImage={HotelImage}&HotelPrice={HotelPrice}&HotelLatitude={HotelLatitude}&HotelLongitude={HotelLongitude}&HotelWebSite={HotelWebSite}&RT_Id={RT_Id}&CityId={CityId}&TownId={TownId}&HT_Id={HT_Id}&UserId={UserId}", Method="PUT", ResponseFormat=WebMessageFormat.Json)]
void UpdateHotel(string Id, string HotelName, string HotelImageFileName, string HotelImage, string HotelPrice, string HotelLatitude, string HotelLongitude, string HotelWebSite, string RT_Id, string CityId, string TownId, string HT_Id, string UserId);

[OperationContract]
[WebGet(UriTemplate = "GetHotels/{id}", ResponseFormat = WebMessageFormat.Json)]
Hotel GetHotels(string id);

//Oda Tipleri
[OperationContract]
[WebGet(UriTemplate="ListRoomType", ResponseFormat=WebMessageFormat.Json)]
List<RoomType> ListRoomType();
[OperationContract]
[WebGet(UriTemplate="GetRoomTypes/{id}", ResponseFormat=WebMessageFormat.Json)]
RoomType GetRoomTypes(string id);


// Kullanıcı
[OperationContract]
[WebGet(UriTemplate="ListUser", ResponseFormat=WebMessageFormat.Json)]
List<User> ListUser();

[OperationContract]
[WebInvoke(UriTemplate = "AddUser?Username={UserName}&Userpassword={UserPassword}&UserFirstSurname={UserFirstSurname}&UserTelephone={UserTelephone}&Useremail={UserEmail}", Method="POST", ResponseFormat = WebMessageFormat.Json)]
void AddUser(string Username, string Userpassword, string UserFirstSurname, string UserTelephone, string Useremail);

[OperationContract]
[WebInvoke(UriTemplate="RemoveUser/{id}", Method="DELETE", ResponseFormat = WebMessageFormat.Json)]
void RemoveUser(string id);

[OperationContract]
[WebInvoke(UriTemplate = "UpdateUser?Username={UserName}&Userpassword={UserPassword}&UserFirstSurname={UserFirstSurname}&UserTelephone={UserTelephone}&Useremail={UserEmail}&id={UserId}", Method="PUT", ResponseFormat=WebMessageFormat.Json)]
void UpdateUser(string Username, string Userpassword, string UserFirstSurname, string UserTelephone, string Useremail, string id);

[OperationContract]
[WebGet(UriTemplate="GetUsers/{id}", ResponseFormat=WebMessageFormat.Json)]
User GetUsers(string id);

//Rezerve
[OperationContract]
[WebGet(UriTemplate = "ListReserved", ResponseFormat = WebMessageFormat.Json)]
List<Reserved> ListReserved();

[OperationContract]
[WebInvoke(UriTemplate="AddReserved?HotelId={HotelId}&RT_Id={RT_Id}&UserId={UserId}&DateofEntry={DateofEntry}&ReleaseDate={ReleaseDate}&TotalPrice={TotalPrice}", Method="POST", ResponseFormat=WebMessageFormat.Json)]
void AddReserved(string HotelId, string RT_Id, string UserId, DateTime DateofEntry, DateTime ReleaseDate, string TotalPrice);

[OperationContract]
[WebInvoke(UriTemplate="RemoveReserved/{id}", Method="DELETE", ResponseFormat = WebMessageFormat.Json)]
void RemoveReserved(string id);

[OperationContract]
[WebInvoke(UriTemplate = "UpdateReserved?HotelId={HotelId}&RT_Id={RT_Id}&UserId={UserId}&DateofEntry={DateofEntry}&ReleaseDate={ReleaseDate}&TotalPrice={TotalPrice}&id={ReservedId}", Method = "PUT", ResponseFormat = WebMessageFormat.Json)]
void UpdateReserved(string HotelId, string RT_Id, string UserId, DateTime DateofEntry, DateTime ReleaseDate, string TotalPrice, string id);

[OperationContract]
[WebGet(UriTemplate = "GetReserved/{id}", ResponseFormat = WebMessageFormat.Json)]
Reserved GetReserved(string id);
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.