you have to write dal for create and update and then in BAL write this code
public bool submit(yourClass objectname) {
using (TransactionScope objScope = new TransactionScope()) { try { youDALClass objdalclass = new youDALClass(); string s = objdalclass .Create(objectname); bool up = objdalclass .update(objectname); objScope.Complete(); return true; } catch (Exception ex) { objScope.Dispose(); throw ex; } }
}