예제 #1
0
 public static RemarkModel RemarkModelGenerator(Remark remark)
 {
     var remarkModel = RemarkModelFactory.CreateInstance(remark.Text);
     //To Do: Wrapping
       //  return remarkModel;
        return remarkModel as RemarkModel;
 }
 public Remark AddRemark(string employeeId, Remark remark)
 {
     RemarkModel remarkModel = Translator.RemarkModelGenerator(remark);
     string timeStamp = remarkModel.GenerateUtcTime();
     remarkModel.UtcTime = timeStamp;
     RemarkModel.InsertRemarkIntoFile(remarkModel, employeeId);
     return remark;
 }