コード例 #1
0
 public static bool Update(BookingCostCenterMapping BookingCostCenterMapping)
 {
     return(WebApi <bool> .PutAsync(controllerName, BookingCostCenterMapping, "Put").Result);
 }
コード例 #2
0
        //public static decimal GetSumOfCostCenters(List<int> refCostCenterIds, int year)
        //{
        //    Dictionary<string, object> parameters = new Dictionary<string, object>
        //    {
        //        { "RefCostCenterIds", refCostCenterIds },
        //        { "Year", year },
        //    };
        //    return WebApi<decimal>.GetData(controllerName, "GetSumOfCostCenters", parameters);
        //}

        public static int Insert(BookingCostCenterMapping BookingCostCenterMapping)
        {
            return(WebApi <int> .PostAsync(controllerName, BookingCostCenterMapping, "SinglePost").Result);
        }