Esempio n. 1
0
        public async Task <JsonResult> GetModuleById(int id)
        {
            try
            {
                if (id <= 0)
                {
                    return(null);
                }

                var result = await _moduleViewModelService.GetItemAsync(id);

                return(Json(result));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }