예제 #1
0
        public IHttpActionResult AddDrive(DriveDTO drive)
        {
            var p = DriveBLL.AddDrive(drive);

            if (p == null)
            {
                return(NotFound());
            }
            return(Ok(p));
        }
예제 #2
0
        public IHttpActionResult GetDriveById(int id)
        {
            var p = DriveBLL.GetDriveById(id);

            if (p == null)
            {
                return(NotFound());
            }
            return(Ok(p));
        }