Exemplo n.º 1
0
        public void RemoveOperation(Guid?id)
        {
            if (id == null || id == Guid.Empty)
            {
                return;
            }
            surgicalHistoryService _surgicalService = new surgicalHistoryService();
            surgicalHistory        sh = _surgicalService.get(id);

            if (sh != null)
            {
                _surgicalService.delete(sh);
            }
            Response.Write("1");
        }
Exemplo n.º 2
0
 public void AddOperation(string name, DateTime?opDate, Guid?id)
 {
     if (name != string.Empty && name != null && id != null && id != Guid.Empty)
     {
         surgicalHistory sh = new surgicalHistory()
         {
             id = Guid.NewGuid(), operationDate = opDate, operationName = name, patientId = id
         };
         surgicalHistoryService _surgicalService = new surgicalHistoryService();
         _surgicalService.add(sh);
         Response.Write("1");
     }
     else
     {
         Response.Write("9");
     }
 }