Beispiel #1
0
        public Incident sp_GetIncidentByID(int idincident)
        {
            Incident incident = new Incident();
            var      inci     = dataContext.sp_GetIncidentByID(idincident).First();

            incident.Incident_ID     = inci.Incident_ID;
            incident.Notes           = inci.Notes;
            incident.Location        = inci.Location;
            incident.Date            = inci.Date;
            incident.DateReported    = inci.DateReported;
            incident.FollowUp        = inci.FollowUp;
            incident.Notes           = inci.Notes;
            incident.ReportedBy      = inci.ReportedBy;
            incident.Organization_ID = inci.Organization_ID;
            incident.Result          = inci.Result;
            incident.Incident1       = inci.Incident;
            return(incident);
        }