Пример #1
0
        public async Task <object> GetListByPanduan(int idPanduan)
        {
            try
            {
                List <Bahan> BahanResponse = await bahanService.GetListByPanduan(idPanduan);

                return(new
                {
                    Status = Models.APIResult.ResultSuccessStatus,
                    ListBahan = BahanResponse
                });
            }
            catch (Exception e)
            {
                throw new InternalServerErrorException(e.Message);
            }
        }