Exemple #1
0
        public ActionResult DeleteConfirmed([Bind(Include = "Id,Date,OpenTime,Id_Customer,ShortDescription,LongDescription,Environment,Id_Technology,Id_Severity,Id_Impact,Id_TaskType,Status,Id_Consultant,files")] int id)
        {
            Ticket ticket = ticketRepo.GetTicketByID(id);

            ticketRepo.DeleteTicket(id);
            ticketRepo.Save();
            return(Json(new { success = true }));
        }
Exemple #2
0
        public async Task <int> DeleteTicket(int id)
        {
            if (await GetTicketById(id) != null)
            {
                _ticketsRepository.DeleteTicket(id);

                return(id);
            }

            return(0);
        }
Exemple #3
0
 public async Task <bool> DeleteTicket(int id)
 {
     return(await _ticketsRepository.DeleteTicket(id));
 }