常用方法
常用方法
常用方法
常用方法
public IActionResult CalculateSum(CalculateVM model) { if (!ModelState.IsValid) { return(BadRequest(new Response <bool>() { Success = false, Data = false, ErrorMessage = "Model is not valid" })); } return(Ok(calculationService.CalculateSum(model))); }