public AuthResponseModel PostAd(AdvertisementModel adModel) { var result = AdvertisementProcessor.AddPost(adModel); var verifyResponse = SetResponse(result); if (IsVerified) { return(SetResponse(5)); } else { return(verifyResponse); } }
public async System.Threading.Tasks.Task <AuthResponseModel> PostAdAsync(AdvertisementModel adModel) { var result = AdvertisementProcessor.AddPostAsync(adModel); var verifyResponse = SetResponse(await result); if (IsVerified) { return(SetResponse(5)); } else { return(verifyResponse); } }