예제 #1
0
 public async Task <IActionResult> Add([FromForm] UploadModel model)
 {
     try
     {
         return(Ok(await _service.Add(model)));
     } catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }