public static bool Update(BookingCostCenterMapping BookingCostCenterMapping) { return(WebApi <bool> .PutAsync(controllerName, BookingCostCenterMapping, "Put").Result); }
//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); }