Search Posts

Category: sql

Linq Query Unable to return Expected Result in Wcf service with Angular JS Application

I am consuming wcf rest service into Angular JS Application .I have two table named Current_Account_Deposit and Current_Account_Withdraw.I am joining two tables records into single record and displaying the records in angular js application.This is account holder transaction record like Money deposit and withdraw. When I have record for both table ,its able to retrieve but if i have only Current_Account_Withdraw record in database ,its do not display anything. Here is the Interface. [OperationContract] [WebInvoke(Method […]

How to fetch dynamic table list in MVC and angularJS

I’m getting a list in my angular.js file (EditDeleteItem.js) which I’m making based on the selected table name. The function to send my list is as below:- $scope.SaveTblRecord = function (list) { //alert(JSON.stringify($scope.employeeList)); $scope.FetchTableName(); //var Data = $.param({ TblData: $scope.MyTblDataList }); var itemList = []; angular.forEach(list, function (value, key) { if (list[key].selected) { itemList.push(list[key].selected); } }); $scope.ItemsList = []; $scope.ItemsList = itemList; $http({ method: “Post”, url: “/Admin/SaveTblData”, data: $scope.ItemsList, }).success(function (data) { $scope.GetTblData($scope.TempName); }).error(function (err) […]