Beispiel #1
0
        public async Task <ActionResult <List <DisburseItemDetails> > > GetDisburseItemDetail([FromBody] RequesterRow row)
        {
            var result = await _clkService.getDisburseItemDetail(row);

            if (result != null)
            {
                //String str = await _emailService.SendMail("*****@*****.**", "Email Testing", "This is to test email service...");
                return(Ok(result));
            }
            else
            {
                //this help to return a NOTfOUND result, u can customerize the string.
                return(NotFound("Error"));
            }
        }