常用方法
常用方法
常用方法
常用方法
public IActionResult AddTypDania([FromBody] TypDania typDania) { try { return(new JsonResult(_repo.AddTypDania(typDania))); } catch (Exception e) { return(BadRequest(e)); } }
public IActionResult AddTypDania([FromBody] TypDania typDania) { try { return(new JsonResult(_repo.AddTypDania(typDania))); } catch (Exception e) { return(BadRequest(e)); } }