public IHttpActionResult AddDrive(DriveDTO drive) { var p = DriveBLL.AddDrive(drive); if (p == null) { return(NotFound()); } return(Ok(p)); }
public IHttpActionResult GetDriveById(int id) { var p = DriveBLL.GetDriveById(id); if (p == null) { return(NotFound()); } return(Ok(p)); }