예제 #1
0
        public async Task <IActionResult> CreateBankAsync([FromBody] CreateBankDTO create)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = await _bank.CreateBank(create);

            if (result.Equals("Bank Created Successfully"))
            {
                return(Ok(result));
            }
            else
            {
                return(BadRequest(result));
            }
        }