I've normal N tier simplified scenario below:
CONTROLLER calls BLL calls DAL
Where CONTROLLER has method below:
public void WarmUp() { var bll=_bll.WarmUp(ID); } BLL has:
public bool WarmUp() { return_dal.WarmUp(ID); } DAL has:
public bool FetchData() { var dal=_bll.WarmUp(ID); if(dal !=null) {return true;} else{return false;} } Now, what I like to do is make the BLL and DAL methods (not sure if both has to be async) to be ASYNC such that after CONTROLLER invokes, it doesn't block the thread.
I've not done Task based programming yet. Could someone please help me convert the above code(BLL/DLL) to be async (c# async await) so that they are asynchronous?