Exemplo n.º 1
0
        public IActionResult AddSaleCostPoint(SaleCostPoint SaleCostPoint)
        {
            if (ModelState.IsValid)
            {
                var postResult = Helper.PostValueToSevice <SaleCostPoint>("POST", SaleCostPoint);

                return(Json(new { success = postResult.result, message = postResult.message }));
            }

            return(Json(new { success = false, message = "Model Is Not Vald!" }));
        }
Exemplo n.º 2
0
        public IActionResult EditSaleCostPoint(long id, SaleCostPoint SaleCostPoint)
        {
            if (ModelState.IsValid)
            {
                SaleCostPoint.State = BusinessEntity.Models.Base.Enums.ObjectState.Active;

                var postResult = Helper.PostValueToSevice <SaleCostPoint>("PUT?id=" + SaleCostPoint.Id.ToString(), SaleCostPoint);

                return(Json(new { success = postResult.result, message = postResult.message }));
            }

            return(Json(new { success = false, message = "Model Is Not Valid!" }));
        }
Exemplo n.º 3
0
        public IActionResult DeleteSaleCostPoint(SaleCostPoint SaleCostPoint)
        {
            var postResult = Helper.PostValueToSevice <SaleCostPoint>("Delete?id=" + SaleCostPoint.Id.ToString(), SaleCostPoint);

            return(Json(new { success = postResult.result, message = postResult.message }));
        }