Example #1
0
        public static async Task <bool> PostAsync <T>(string uri, EmployeeUserViewModel data)
        {
            var response = await APIHelpers.CallApi(uri, JsonConvert.SerializeObject(data), "POST");

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