Пример #1
0
        public async Task <ActionResult <AtResult <InformationUserDmInput_Delete> > > DeleteInfromationUser_CallAjax([FromBody] InformationUserDmInput_Delete input_Delete)
        {
            if (input_Delete != null)
            {
                var notify = await _logicInformation.DeleteInfromationUser(input_Delete);

                if (notify == Notify.PhienGiaoDichHetHan)
                {
                    return(new AtResult <InformationUserDmInput_Delete>(Notify.PhienGiaoDichHetHan));
                }
                return(new AtResult <InformationUserDmInput_Delete>(input_Delete));
            }
            else
            {
                return(new AtResult <InformationUserDmInput_Delete>(Notify.NotFound));
            }
        }
        public async Task <ActionResult <AtResult <InformationUserDmInput_Delete> > > DeleteInfromationUser_CallAjax([FromBody] InformationUserDmInput_Delete inputData)
        {
            if (await CheckPermission(_context))
            {
                if (inputData != null)
                {
                    var notify = await _logicInformation.DeleteInfromationUser(inputData);

                    if (notify == AtNotify.PhienGiaoDichHetHan)
                    {
                        return(new AtResult <InformationUserDmInput_Delete>(AtNotify.PhienGiaoDichHetHan));
                    }
                    return(new AtResult <InformationUserDmInput_Delete>(inputData));
                }
                else
                {
                    return(new AtResult <InformationUserDmInput_Delete>(AtNotify.NotFound));
                }
            }
            else
            {
                return(new AtResult <InformationUserDmInput_Delete>(AtNotify.KhongCoQuyenTruyCap));
            }
        }