Courtesy calls for discussing the decision of resigning with the reporting manager or HR manager. However it is not mandatory. An employee who wants to resign has to put it in writing to the Competent Authority(normally appointing authority) indicating the date of relief.