Created
July 21, 2019 16:56
-
-
Save obegendi/59bee9e29e59df143ab9da3eaacc6838 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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