using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Traffic.Data.Models; using Traffic.Data.ViewModels; namespace Traffic.Repository.Interfaces { public interface IEventRepository { public int GetEventCount(string term); public int GetEventBySitesCount(string siteId, string term); public int GetEventJoinSiteAndUsersCount(int userId, string eventType, string startTime, string endTime); public IEnumerable GetEvents(); public IEnumerable GetEventsByCar(string term); public IEnumerable GetEventBySites(string siteId, int page, int pageSize); public IEnumerable GetEventBySitesAndEventType(List sitesId, List eventTypes, string startTime, string endTime); public IEnumerable GetEventByEventType(string eventType, int page, int pageSize); public int GetEventByTimeCount(string startTime, string endTime); public IEnumerable GetEventByTime(string startTime, string endTime); public IEnumerable GetVehicleType(); //public IEnumerable GetEventJoinSiteAndUsers(int userid, string eventType, string startTime, string endTime); public IEnumerable GetEventJoinSiteAndUsers(int userId, string eventType, string startTime, string endTime); public IEnumerable GetEvents(string startDatetime, string endDatetime); public Event GetEventById(int id); public VehicleTypeTable GetVehicleTypebyType(string vehicletype); public int GetThisYearEventsCount(string startTime, string endTime, string account); public int GetThisMonthEventsCount(string startTime, string endTime, string account); public int GetEventByEventTypeCount(string eventType); public bool InsertEvent(Event data); public bool UpdateEvent(Event data); public bool UpdatEventCheckPunish(string account, int eventId, string checkPunish, string law); public bool UpdatEventNoPunish(string account, int eventId, string ps); public bool UpdateEventVehicleType(int id, string vehicleType); public bool UpdateEventVehicleNumber(int id, string vehicleNumber); public bool UpdateEventVehicle(int id, string vehicleType, string vehicleNumber); public bool DeleteEvent(int id); public IEnumerable GetExceptionNumbers(); } }