Ejemplo n.º 1
0
        public IActionResult UpdateFreight([FromBody] BusinessFreight freight)
        {
            var entity = Service.UpdateFreight(freight);
            var result = new JsonData {
                Success = true, Data = entity, Msg = "修改成功"
            };

            return(Json(result));
        }
Ejemplo n.º 2
0
        public IActionResult CreateFreight([FromBody] BusinessFreight freight)
        {
            freight.BusinessId = Business.ID;
            var entity = Service.CreateFreight(freight);
            var result = new JsonData {
                Success = true, Data = entity, Msg = "新增成功"
            };

            return(Json(result));
        }