Esempio n. 1
0
        public async Task <Result <HelpTicketManageModel> > GetHelpTicket(int id)
        {
            if (id == 0)
            {
                return(new HelpTicketManageModel(null)
                {
                    StatusCode = RecordStatusCode.Active,
                    Priority = TicketPriority.Low,
                });
            }

            var result = await _helpService.GetHelpTicketAsync(id);

            return(new HelpTicketManageModel(result));
        }