public bool Block(BillPayDto bill, bool status)
        {
            bill.Block      = status;
            bill.ModifyDate = DateTime.UtcNow;

            var content  = new StringContent(JsonConvert.SerializeObject(bill), Encoding.UTF8, "application/json"); //encoding the obj
            var response = client.PutAsync("api/billpays", content).Result;

            if (response.IsSuccessStatusCode)
            {
                return(true);
            }

            return(false);
        }
 public BillPayViewModel(BillPayDto billPay)
 {
     BillPay = billPay;
 }