Skip to content

Instantly share code, notes, and snippets.

@obegendi
Created July 21, 2019 16:56
Show Gist options
  • Save obegendi/59bee9e29e59df143ab9da3eaacc6838 to your computer and use it in GitHub Desktop.
Save obegendi/59bee9e29e59df143ab9da3eaacc6838 to your computer and use it in GitHub Desktop.
public class UberQualityService
{
public async bool SaveCustomer(string data)
{
if (data != null)
{
var customer = JsonConvert.DeserializeObject<Customer>(data);
if(DateTime.Today.DayOfWeek == DayOfWeek.Friday)
{
//Database save logic
return true;
}
else
{
return false;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment