Esempio n. 1
0
        public BaseOutput AddUserPhoneInformation(tbl_UserPhoneInforamtion item)
        {
            CRUDOperation cRUDOperation = new CRUDOperation();
            BaseOutput    baseOutput;


            try
            {
                bool flag = cRUDOperation.ControlUserPhoneInformation(item);
                if (!flag)
                {
                    tbl_UserPhoneInforamtion _UserPhoneInforamtion = cRUDOperation.AddUserPhoneInformation(item);
                    return(baseOutput = new BaseOutput(true, BOResultTypes.Success.GetHashCode(), BOBaseOutputResponse.SuccessResponse, ""));
                }
                else
                {
                    return(baseOutput = new BaseOutput(true, CustomError.ExistRecordErrorCode, CustomError.ExistRecordErrorDesc, ""));
                }
            }
            catch (Exception ex)
            {
                return(baseOutput = new BaseOutput(false, BOResultTypes.Danger.GetHashCode(), BOBaseOutputResponse.DangerResponse, ex.Message));
            }
        }