Exemplo n.º 1
0
        public Remarks AddRemarks(string id, string remarks)
        {
            Remarks remark = new Remarks();

            foreach (Employee e in EmpList)
            {
                if (e.Id.Equals(id))
                {
                    //e.Remarks = remarks;

                    remark.Id          = id;
                    remark.Remark      = remarks;
                    remark.GetDateTime = DateTime.Now;
                    RemarkList.Add(remark);
                    return(remark);
                }
            }
            throw new FaultException(new FaultReason("Employee Record Not Found For Inserting Remarks"), new FaultCode("102"));
        }
Exemplo n.º 2
0
        public IEnumerable <Remarks> GetRemarks(string id)
        {
            Remarks rem = new Remarks();

            return(RemarkList.Where(remark => remark.Id == id).ToList());
        }