Esempio n. 1
0
        public IHttpActionResult AddDrive(DriveDTO drive)
        {
            var p = DriveBLL.AddDrive(drive);

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

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