Beispiel #1
0
        public async Task <JsonResult> EditBalanceScoreCard(BalanceScoreCardViewModel balance)
        {
            if (ModelState.IsValid)
            {
                BalanceScoreCard _balance = AutoMapperConfiguration.Mapper.Map <BalanceScoreCard>(balance);
                bool             result   = await _balanceScoreCardService.EditBalanceScoreCard(_balance);

                return(Json(result, JsonRequestBehavior.AllowGet));
            }
            return(Json(true, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public async Task <JsonResult> GetBalanceScoreCardById(string BalanceScoreCardId)
        {
            BalanceScoreCard result = await _balanceScoreCardService.GetBalanceScoreCardById(BalanceScoreCardId);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public async Task <bool> EditBalanceScoreCard(BalanceScoreCard BalanceScoreCard)
        {
            string BalanceScoreCardSerialized = JsonConvert.SerializeObject(BalanceScoreCard);

            return(true);
        }