Ejemplo n.º 1
0
        public JsonResult TimeEmptyByRoomDay([FromBody] TimeRequests model)
        {
            List <TimeResult> results = new List <TimeResult>();

            results = ApiHelper <List <TimeResult> > .HttpPostAsync($"{Helper.ApiUrl}api/Showing/TimeEmptyByRoomDay", model);

            return(Json(new { results }));
        }
        public async Task <IEnumerable <TimeResult> > TimeEmptybyRoomDay(TimeRequests requests)
        {
            DynamicParameters parameters = new DynamicParameters();

            parameters.Add("@RoomId", requests.RoomId);
            parameters.Add("@Day", requests.DayShow);
            return(await SqlMapper.QueryAsync <TimeResult>(cnn : conn, sql : "sp_TimeEmptyByRoomDay", param : parameters, commandType : CommandType.StoredProcedure));
        }
Ejemplo n.º 3
0
 public Task <IEnumerable <TimeResult> > TimeEmptybyRoomDay(TimeRequests requests)
 {
     return(showingRepository.TimeEmptybyRoomDay(requests));
 }
Ejemplo n.º 4
0
 public async Task <IEnumerable <TimeResult> > TimeEmptyByRoomDay(TimeRequests requests)
 {
     return(await showingService.TimeEmptybyRoomDay(requests));
 }